0

我是一个有点新的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!

我该如何解决?

4

1 回答 1

0

那篇文章显然有点过时了。启动与 MacPorts 一起安装的守护程序的现代首选方法是使用port load命令。

sudo port load mysql5-server

通过使用停止它port unload

于 2013-09-30T14:55:29.257 回答