ERROR! The server quit without updating PID file (/usr/local/var/mysql/andy.local.pid)

andy:etc andy$ mysql.server start

Starting MySQL

. ERROR! The server quit without updating PID file (/usr/local/var/mysql/andy.local.pid).



是因为我之前悲催的把之前的账户删了


现在用的是全新的账户,目前的账户没有/usr/local/var/mysql 目录的写权限:


andy:var andy$ ll

total 0

drwxr-xr-x   6 501   admin  204  6 19 10:33 ./

drwxrwxr-x  20 root  admin  680  6 11 15:51 ../

drwxr-xr-x   3 501   admin  102  6 19 10:33 db/

drwxr-xr-x   2 501   admin   68  6 19 10:33 log/

drwxr-xr-x  10 501   admin  340  6 19 16:44 mysql/

drwxr-xr-x   2 501   admin   68  6 19 10:33 run/



授予权限:


andy:var andy$ sudo chmod 777 mysql

andy:var andy$ ll

total 0

drwxr-xr-x   6 501   admin  204  6 19 10:33 ./

drwxrwxr-x  20 root  admin  680  6 11 15:51 ../

drwxr-xr-x   3 501   admin  102  6 19 10:33 db/

drwxr-xr-x   2 501   admin   68  6 19 10:33 log/

drwxrwxrwx  10 501   admin  340  6 19 16:44 mysql/

drwxr-xr-x   2 501   admin   68  6 19 10:33 run/

andy:var andy$ mysql.server start

Starting MySQL

. SUCCESS! 

andy:var andy$ 


有了写权限之后,就成功了~~

你可能感兴趣的:(ERROR! The server quit without updating PID file (/usr/local/var/mysql/andy.local.pid))