来自Macports的MySQL错误:缺少mysqld.sock [英] Mysql error from macports: missing mysqld.sock
本文介绍了来自Macports的MySQL错误:缺少mysqld.sock的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在终端中运行了以下命令:
I ran the following in the terminal:
sudo port install py26-mysql
sudo port install mysql5-server
似乎已经下载并正确安装,但是当我尝试使用/opt/local/lib/mysql5/bin/mysql
打开mysql时,出现以下错误:
It seems to have downloaded and installed properly, but when I try to open mysql using /opt/local/lib/mysql5/bin/mysql
I get the following error:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/local/var/run/mysql5/mysqld.sock' (2)
有人知道出了什么问题吗?
Does anyone know what's gone wrong?
推荐答案
您是否激活了MySQL服务器?请参阅步骤3:安装MySQL 下的说明.
Did you activate the MySQL server? See the instructions under Step 3: Install MySQL.
这篇关于来自Macports的MySQL错误:缺少mysqld.sock的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文