我是一个新的Mac。我尝试使用以下链接安装mysql5:
http://matthewcarriere.com/2008/04/02/installing-mysql-on-mac-os-x-leopard-using-macports/
当我尝试运行以下内容时:
sudo /opt/local/bin/mysqld_safe5 &
我明白了:
[2] 59079
ps: No user named 'axww'
130911 13:35:11 mysqld_safe Starting mysqld daemon with databases from /opt/local/var/db/mysql5
在此之后,我尝试了以下内容:
mysqladmin5 -u root -p ping
我收到以下错误:
mysqladmin5: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/opt/local/var/run/mysql5/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/opt/local/var/run/mysql5/mysqld.sock' exists!
我该如何解决这个问题?
答案 0 :(得分:0)
那篇文章显然有点陈旧。启动使用MacPorts安装的守护程序的现代首选方法是使用port load
命令。
sudo port load mysql5-server
使用port unload
停止播放。