Database Knowledge Base / MySQL /
Add comment
Name:
Email:
* Comment:
(Use BBcode - No HTML)
code
* Confirmation code:   Write the characters in the image above exactly as you see it


what this error does mean at 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

Error Footprints

user@machine:~$ lamp_start
Starting XAMPP for Linux 1.6.1...
XAMPP: Another web server daemon is already running.
XAMPP: XAMPP-MySQL is already running.
XAMPP: XAMPP-ProFTPD is already running.
XAMPP for Linux started.

user@machine:~$ mysqladmin -u root -p ping
Enter password:
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!

user@machine:~$

Recommended Solution

1. Download Mysql Latest Client application
(http://dev.mysql.com/get/Downloads/MySQL-5.0/MySQL-client-community-5.0.45-0.rhel3.i386.rpm/from/pick#mirrors)

2.  Install 
rpm -ivh MySQL-client-community-5.0.45-0.rhel3.i386.rpm

Keywords
Linux, Xampp, Socket, MySQL, Linux, mysqld.sock

 




RSS