Results 1 to 3 of 3
Thread: mysql connection problem
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Dec 2007
mysql connection problem
an error getting like these.
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
I had a problem just like this with Fedora/MySQL. It turned out that the permissions on the folder /var/lib/mysql were to restrictive and would not let MySQL creat a socket/file in this folder.
Try changing the permissions for the folder(/var/lib/mysql) to the following
1. Owner can view modify content
2. Group can view content
3, Other can view content