Problems installing MySql
I deployed a Linux Ubuntu 12.10 distribution, i install Apache and everything ran well, but when i tried to install MySql im having errors:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
I hope you can help me.
Thank you very much.
3 Replies
$ sudo apt-get install mysql-server
Then try also with aptitude:
$ sudo aptitude install mysql-server
I hope your help. Thank you very much.
1) Uninstall mysql
$ sudo apt-get remove mysql-server
2) Login as root
$ sudo -s
3) Delete /var/lib/mysql
$ rm -r /var/lib/mysql
4) Exit root
$ exit
5) Install Mysql again
$ sudo apt-get install mysql-server
Following all these steps Mysql run ok.
Thank you very much, maybe this can help somebody.