0

I just upgraded my comp to the beta Yosemite and now my MySQL is giving me a connection problem.

I used to be able to run this command in terminal and get results:

/usr/local/mysql/bin/mysql -uroot -e "SELECT * FROM table_name"

But now it returns this:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

I'm not sure how I even set this connection up in the first place so please any answers, pretend I'm not too savvy with this... Thanks in advance!!

4

2 回答 2

3

首先,验证您的 MySQL 服务器是否正在运行:

mysql.server start 

如果这不是问题,请尝试使用这些说明以安全模式启动 MySQL 服务器

于 2014-07-28T18:18:30.000 回答
2

好吧,我知道发生了什么。当我升级到优胜美地时,这个文件消失了。无论如何,我不得不重新安装文件。MySQL部分下的此链接中的所有内容都在这里:

http://coolestguidesontheplanet.com/get-apache-mysql-php-phpmyadmin-working-osx-10-10-yosemite/

于 2014-07-28T21:04:13.393 回答