Pages

ERROR 2002 (HY000) MySQL in Solaris 10

When you entered mysql as the root user, it suppose to see mysql> prompt for the successful connection;

    bash-3.00# mysql
What if the >> ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

 Solution; 
  1. edit file /etc/init.d/mysql 
  2. Locate datadir= 
  3. Change  to the location of the MySql installation path, which in my case is /opt/mysql/mysql/data 
  4. Save the file

No comments:

Post a Comment

You might also like:

Popular Posts