我是一个有点新的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!
我该如何解决?