I install mysql and try start
/usr/local/mysql/bin# ./mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
/usr/local/mysql/bin#
Any Idea?
|
I install mysql and try start
Any Idea? |
||||
|
|
|
mysql can be started from upstart. Basically you install mysql-server package. You can easily search for mysql-server package in synaptic and install it. You will be prompted for root password during installtion[i.e.mysql user root password] . After that in terminal just do
or
Mysql usually is started on boot so you may have it running as well. Just |
|||
|
|
|
Ubuntu 11.10: Ubuntu 12.04: Follow instruction then reboot. This problem may happen when you upgrade from one ubuntu version to another and config gets messed up somehow. Usually the related to the startup process of mysql daemon mysqld) |
|||
|
|
|
I see you are using /tmp/ for the mysql.socket so either you are not installing the mysql 5.1 that comes from ubuntu by default or you are installing mysql 5.5.x (which you need to mention in your question if this is the case). Anyway some of the things you can do are:
If by any change you happen to be using 5.5 then remember to delete the directories of old 5.1 from /etc/mysql, /var/lib/mysql and /user/lib/mysql |
||||
|
|
|
Change the server name from "localhost" to "127.0.0.1" in your connection params, Im sure it will do the trick. |
|||
|
|