2

I've tried every solution posted here after running brew install mysql, and still no luck. On trying to start MySQL I get this:

me$ mysql.server start
Starting MySQL
. ERROR! The server quit without updating PID file (/usr/local/mysql/data/cpe-98-14-179.159.nyc.res.rr.com.pid).

Or this:

me$ mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)

etc/my.cnf looks like this:

me$ sudo nano etc/my.cnf
Password:

[mysqld]
datadir=/usr/local/mysql/data
socket=/var/lib/mysql/mysql.sock


[mysql.server]
user=mysql
basedir=/usr/local/mysql


[client]
socket=/var/lib/mysql/mysql.sock

Are my permissions wrong? Is it possible my directories are messed up? If I could wipe everything clean and install from the website I'd try that at this point. Any help is MUCH appreciated!

peterpixels
  • 21
  • 1
  • 3

1 Answers1

1
sudo chown -R user_name /usr/local/var/mysql/

Replace user_name with your user name.