[英]Error in installing mysql using macports
I am a bit new Mac. 我是新Mac。 I tried installing mysql5 using the following link:
我尝试使用以下链接安装mysql5:
http://matthewcarriere.com/2008/04/02/installing-mysql-on-mac-os-x-leopard-using-macports/ http://matthewcarriere.com/2008/04/02/installing-mysql-on-mac-os-x-leopard-using-macports/
When I tried running the following: 当我尝试运行以下命令时:
sudo /opt/local/bin/mysqld_safe5 &
I got this: 我懂了:
[2] 59079
ps: No user named 'axww'
130911 13:35:11 mysqld_safe Starting mysqld daemon with databases from /opt/local/var/db/mysql5
After this, I tried the following: 之后,我尝试了以下方法:
mysqladmin5 -u root -p ping
I got the following error: 我收到以下错误:
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!
How do I fix this? 我该如何解决?
That article is obviously a bit antiquated. 那篇文章显然有点过时了。 The modern preferred way to start a daemon installed with MacPorts is by using the
port load
command. 启动与MacPorts一起安装的守护程序的现代首选方法是使用
port load
命令。
sudo port load mysql5-server
Stop it by using port unload
. 使用
port unload
停止它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.