bash-3.00# mysqlWhat if the >> ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Solution;
- edit file /etc/init.d/mysql
- Locate datadir=
Change to the location of the MySql installation path, which in my case is /opt/mysql/mysql/data Save the file
No comments:
Post a Comment