Starting MySQL. ERROR! Manager of pid-file quit without updating file.

mysql 初始化成功后,启动时出现如题所示错误

此处为授权问题,解决方法:chown -R mysql.mysql /appliaction/mysql5.1.72/ 即可解决。

对data和tmp授权即可解决问题。

chown -R mysql /application/mysql/data

chown -R mysql /application/mysql/tmp/

错误: 131020 13:25:58 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.


131020 13:33:01 [ERROR] Can't start server : Bind on unix socket: Permission denied

131020 13:33:01 [ERROR] Do you already have another mysqld server running on socket: /application/mysql5.1.72/tmp/mysql.sock ?

131020 13:33:01 [ERROR] Aborting


详细解决过程:

[root@t6 ~]#/application/mysql/bin/mysql.serve start                          Starting MySQL. ERROR! Manager of pid-file quit without updating file.

查看mysql日志:


[root@t6 ~]# cat /application/mysql/data/t6.4_185s.err
131020 13:25:58 mysqld_safe Starting mysqld daemon with databases from /application/mysql5.1.72/data
/application/mysql5.1.72/libexec/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
131020 13:25:58 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
131020 13:25:58  InnoDB: Initializing buffer pool, size = 8.0M
131020 13:25:58  InnoDB: Completed initialization of buffer pool
131020 13:25:58  InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
131020 13:25:58 mysqld_safe mysqld from pid file /application/mysql5.1.72/data/t6.4_185s.pid ended
[root@t6 ~]#

解决:

[root@t6 ~]# chown -R mysql /application/mysql/data

问题仍然存在,但似乎有点区别:

[root@t6 ~]# /application/mysql/bin/mysql.server start
Starting MySQL...... ERROR! Manager of pid-file quit without updating file.
[root@t6 ~]#

看日志:

131020 13:33:01 [ERROR] Can't start server : Bind on unix socket: Permission denied
131020 13:33:01 [ERROR] Do you already have another mysqld server running on socket: /application/mysql5.1.72/tmp/mysql.sock ?
131020 13:33:01 [ERROR] Aborting

解决:

[root@t6 ~]# chown -R mysql /application/mysql/tmp/
[root@t6 ~]# /application/mysql/bin/mysql.server start
Starting MySQL. SUCCESS!
[root@t6 ~]#


你可能感兴趣的:(unix,server,Permission,bind,on,open,start,:,denied, ,the,Can't,Can't,mysql.plugin,[ERROR],[ERROR],socket:,table.)