我使用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