Can’t start server : Bind on unix socket: Permission denied

Can't start server : Bind on unix socket: Permission denied
 
140415 10:29:10  InnoDB: Initializing buffer pool, size = 8.0M
140415 10:29:10  InnoDB: Completed initialization of buffer pool
140415 10:29:10  InnoDB: Started; log sequence number 1 937357087
140415 10:29:10 [ERROR] Can't start server : Bind on unix socket: Permission denied
140415 10:29:10 [ERROR] Do you already have another mysqld server running on socket: /var/run/mysqld/mysqld.sock ?
140415 10:29:10 [ERROR] Aborting
 
 
解决方法:
改变你mysql编译安装目录的权限:  chown -R mysql:mysql /var/run/mysqld
如果不行的话,可以修改下my.cnf文件中的/var/run/mysqld改为/tmp下
重新启动OK!

 

发表评论

电子邮件地址不会被公开。 必填项已用*标注