mysql启动报错 The server quit without updating PID file (/[FAILED]ql/cc.pid).

环境centos6.5  mysql版本是5.5.10

开启mysql服务

/etc/init.d/mysqld start

报错如下:Starting MySQL.The server quit without updating PID file (/[FAILED]ql/cc.pid).


我的错误日志是/data/mysql/cc.err:

160418 09:33:10 mysqld_safe Starting mysqld daemon with databases from /data/mysql
160418  9:33:10 InnoDB: The InnoDB memory heap is disabled
160418  9:33:10 InnoDB: Mutexes and rw_locks use GCC atomic builtins
160418  9:33:10 InnoDB: Compressed tables use zlib 1.2.3
/usr/local/mysql/bin/mysqld: Can't create/write to file '/tmp/iblXxbUK' (Errcode: 13)
160418  9:33:10  InnoDB: Error: unable to create temporary file; errno: 13
160418  9:33:10 [ERROR] Plugin 'InnoDB' init function returned error.
160418  9:33:10 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
160418  9:33:10 [ERROR] Unknown/unsupported storage engine: InnoDB
160418  9:33:10 [ERROR] Aborting

160418  9:33:10 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete

160418 09:33:10 mysqld_safe mysqld from pid file /data/mysql/cc.pid ended


我注意到了这个情况:/tmp这个临时文件目录下不能写文件看来是权限配置错误了

/usr/local/mysql/bin/mysqld: Can't create/write to file '/tmp/iblXxbUK' (Errcode: 13)


果然错误了:

[root@cc /]# ls -ld  /tmp
drwxrwxr-x. 4 root root 4096 Apr 18 09:37 /tmp


修改:[root@cc /]# chmod  1777  /tmp


重新启动mysql:[root@cc /]# /etc/init.d/mysqld start
Starting MySQL..                                           [  OK  ]

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值