I have installed LAMP on Ubuntu 11.04. PHP works fine but,when I try to access mysql, I get
Code:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
In the past I have fixed this problem with
Code:
sudo service mysqld restart
but now that gives me
Code:
mysqld: unrecognized service
I subsequently tried
Code:
sudo apt-get remove mysql-server
sudo apt-get install mysql-server
but it did not make any difference. I then tried
Code:
sudo /usr/bin/mysql_secure_installation
also to no avail.
Any help resolving this would be most appreciated,
Peter