/etc/init.d/mysql: No such file or directory 和 ERROR 2002 (HY000): Can't connect to local MySQL server through socket 解决办法
<br />更改/etc/my.cnf <br /> <br />[client]#password= your_passwordport= 3306socket= /tmp/mysql.sock# Here follows entries for some specific programs# The MySQL server[mysqld]port= 3306socket
·
更改/etc/my.cnf
/etc/init.d/mysqld restart
/etc/init.d/mysqld status
SUCCESS! MySQL running (7562)
mysql -uegilance
ERROR 1045 (28000): Access denied for user 'egilance'@'localhost' (using password: NO)
即可
更多推荐
所有评论(0)