當我嘗試從PrefPane啓動MySQL時,它向我詢問我的密碼,然後它一直說MySQL服務器有stopped
紅色。Mysql PrefPane無法正常工作 - OS X
它不啓動。
$ mysqladmin start
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
$ mysql start
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
當我搜索mysql
過程,這是我所看到的:
$ ps wwaux | grep mysqld | grep -v grep
_mysql 203 0.0 0.5 2518204 19288 ?? S 3:30PM 0:23.25 /opt/local/libexec/mysqld --basedir=/opt/local --datadir=/opt/local/var/db/mysql5 --user=_mysql --log-error=/opt/local/var/db/mysql5/localhost.err --pid-file=/opt/local/var/db/mysql5/localhost.pid --socket=/tmp/mysql.sock --port=3306
root 75 0.0 0.0 2435492 884 ?? S 3:30PM 0:00.04 /bin/sh /opt/local/lib/mysql5/bin/mysqld_safe --datadir=/opt/local/var/db/mysql5 --pid-file=/opt/local/var/db/mysql5/localhost.pid
的思考?
爲什麼downvote沒有解釋? – marcamillion
這個問題更適合於「超級用戶」而不是堆棧溢出,這是更多的編程問題。 – Jericon