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:

  • eth0 missing in Ubuntu LTS
    eth0 missing in Ubuntu LTS

    After fresh installation Ubuntu LTS, the machine…

  • Gems can't create makefile? Ubuntu 12.04.2
    Gems can't create makefile? Ubuntu 12.04.2

    I'm getting the following result when I try to…

  • CentOS black screen on boot
    CentOS black screen on boot

    Hit any key at the grub screen. Enter 'e' to edit…

  • Error 1 : Snipe-IT (your documentroot is set incorrectly)
    Error 1 : Snipe-IT (your documentroot is set incorrectly)

    D'oh. if you're seeing this, your DocumentRoot is…

Popular Posts