我使用macports安装Mysql5。但是,当试图为root帐户创建密码时,出现此错误:想要更改mysql root的密码,但遇到错误
sh-3.2# /opt/local/lib/mysql5/bin/mysqladmin -u root password 123456
/opt/local/lib/mysql5/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/opt/local/var/run/mysql5/mysqld.sock' (61)'
Check that mysqld is running and that the socket: '/opt/local/var/run/mysql5/mysqld.sock' exists!
如何解决此问题?
你可能想检查服务是否实际运行 – JohnP 2011-03-05 09:36:16