`
Sev7en_jun
  • 浏览: 1213295 次
  • 性别: Icon_minigender_1
  • 来自: 广州
博客专栏
84184fc0-d0b6-3f7f-a3f0-4202acb3caf5
Apache CXF使用s...
浏览量:109916
社区版块
存档分类
最新评论

解决:Starting MySQL....The server quit without updating PID file

 
阅读更多

控制台异常:

Starting MySQL....The server quit without updating PID file (/data2/mysql/SMT-TDB01.pid).[失败]

 

日志文件记录:

130121 11:52:47 mysqld_safe Starting mysqld daemon with databases from /data2/mysql
130121 11:52:47 [Note] Plugin 'FEDERATED' is disabled.
130121 11:52:47 InnoDB: The InnoDB memory heap is disabled
130121 11:52:47 InnoDB: Mutexes and rw_locks use GCC atomic builtins
130121 11:52:47 InnoDB: Compressed tables use zlib 1.2.3
130121 11:52:47 InnoDB: Using Linux native AIO
/usr/sbin/mysqld: Can't create/write to file '/data2/tmp/ibeWc2qS' (Errcode: 2)
130121 11:52:47  InnoDB: Error: unable to create temporary file; errno: 2
130121 11:52:47 [ERROR] Plugin 'InnoDB' init function returned error.
130121 11:52:47 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
130121 11:52:47 [ERROR] Unknown/unsupported storage engine: InnoDB
130121 11:52:47 [ERROR] Aborting

130121 11:52:47 [Note] /usr/sbin/mysqld: Shutdown complete

130121 11:52:47 mysqld_safe mysqld from pid file /data2/mysql/SMT-TDB01.pid ended

 

重点是红色部分,意思就是对'/data2/tmp/目录可能没有创建和写入的权限

 

解决方法

1,检查此目录是否存在,不存在则创建

2,对此文件添加 mysql访问的权限:chown -R mysql:mysql /data2/tmp

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics