时间:2021-07-01 10:21:17 帮助过:43人阅读
ERROR 2002(HY000):Can't connect to local MySQL server through socket '/tmp/mysql.socket'
# ln -s /usr/local/mysql/data/mysql.sock /tmp/mysql.sock
ERROR 1045 (28000):Access denied for user 'root'@'localhost' (using password: NO)
说明设置了mysql密码,需要# mysql -uroot -p'密码'
设置密码cd /usr/local/mysql/bin下 # ./mysqladmin -u root password '密码'
Can‘t connect to local MySQL server through socket
标签:ERROR 2002(HY000)