Search code examples
mysqlshellterminalosx-yosemite-beta

Connection error on MySQL Workbench 6.1


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!!


Solution

  • Okay I found out what happened. When I upgraded to Yosemite, this file disappeared or something. Anyway I had to reinstall the files. Everything is here in this link under the MySQL section:

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