[ubuntu-za] Can't connect to local MySQL server

Alf Stockton alf at stockton.co.za
Wed Jan 28 11:28:35 GMT 2009

Vincent Williams wrote:
> On Wednesday 28 January 2009 13:06:42 Alf Stockton wrote:
>> That gives me:-
>> root at general:~# mysql -h localhost -u root -p
>> Enter password:
>> ERROR 2002 (HY000): Can't connect to local MySQL server through socket
>> '/var/lib/mysql/mysql.sock' (111)
> Have you tried without the password option?
root at general:~# mysql -h -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

Alf Stockton		www.stockton.co.za

There is a 20% chance of tomorrow.

More information about the ubuntu-za mailing list