本帖最后由 1500181524oxjk 于 2017-8-17 20:17 编辑
我用服务器建了一个论坛。
早上还好好的,晚上我一打开论坛就发现 “ XXX(数据库表) Don‘t written. ”
然后 我登录BT面板 尝试重启 Mysql 发现 Mysql 启动失败。
之后 我登录ssh 尝试启动mysql
输入命令 “service mysqld start”
提示
- Starting MySQL.
- ERROR! The server quit without updating PID file (/www/server/data/Myserver.pid).
复制代码 不得已 我在网上搜了大量资料,方法都用了,就是无法启动。
附上mysql错误日志:
- 170817 17:37:00 [Note] /www/server/mysql/bin/mysqld: Normal shutdown
- 170817 17:37:00 [Note] Event Scheduler: Purging the queue. 0 events
- 170817 17:37:00 InnoDB: Starting shutdown...
- 170817 17:37:02 InnoDB: Shutdown completed; log sequence number 86366295
- 170817 17:37:02 [Note] /www/server/mysql/bin/mysqld: Shutdown complete
- 170817 19:45:07 [Note] Plugin 'FEDERATED' is disabled.
- 170817 19:45:07 InnoDB: The InnoDB memory heap is disabled
- 170817 19:45:07 InnoDB: Mutexes and rw_locks use GCC atomic builtins
- 170817 19:45:07 InnoDB: Compressed tables use zlib 1.2.3
- 170817 19:45:07 InnoDB: Using Linux native AIO
- /www/server/mysql/bin/mysqld: Can't create/write to file '/tmp/ib10uJtD' (Errcode: 13)
- 170817 19:45:07 InnoDB: Error: unable to create temporary file; errno: 13
- 170817 19:45:07 [ERROR] Plugin 'InnoDB' init function returned error.
- 170817 19:45:07 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
- 170817 19:45:07 [ERROR] Unknown/unsupported storage engine: InnoDB
- 170817 19:45:07 [ERROR] Aborting
- 170817 19:45:07 [Note] /www/server/mysql/bin/mysqld: Shutdown complete
- 170817 19:45:42 [Note] Plugin 'FEDERATED' is disabled.
- 170817 19:45:42 InnoDB: The InnoDB memory heap is disabled
- 170817 19:45:42 InnoDB: Mutexes and rw_locks use GCC atomic builtins
- 170817 19:45:42 InnoDB: Compressed tables use zlib 1.2.3
- 170817 19:45:42 InnoDB: Using Linux native AIO
- /www/server/mysql/bin/mysqld: Can't create/write to file '/tmp/ib9DlizF' (Errcode: 13)
- 170817 19:45:42 InnoDB: Error: unable to create temporary file; errno: 13
- 170817 19:45:42 [ERROR] Plugin 'InnoDB' init function returned error.
- 170817 19:45:42 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
- 170817 19:45:42 [ERROR] Unknown/unsupported storage engine: InnoDB
- 170817 19:45:42 [ERROR] Aborting
- 170817 19:45:42 [Note] /www/server/mysql/bin/mysqld: Shutdown complete
- 170817 19:46:22 [Note] Plugin 'FEDERATED' is disabled.
- 170817 19:46:22 InnoDB: The InnoDB memory heap is disabled
- 170817 19:46:22 InnoDB: Mutexes and rw_locks use GCC atomic builtins
- 170817 19:46:22 InnoDB: Compressed tables use zlib 1.2.3
- 170817 19:46:22 InnoDB: Using Linux native AIO
- /www/server/mysql/bin/mysqld: Can't create/write to file '/tmp/ibmp4TG4' (Errcode: 13)
- 170817 19:46:22 InnoDB: Error: unable to create temporary file; errno: 13
- 170817 19:46:22 [ERROR] Plugin 'InnoDB' init function returned error.
- 170817 19:46:22 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
- 170817 19:46:22 [ERROR] Unknown/unsupported storage engine: InnoDB
- 170817 19:46:22 [ERROR] Aborting
- 170817 19:46:22 [Note] /www/server/mysql/bin/mysqld: Shutdown complete
- 170817 19:48:18 [Note] Plugin 'FEDERATED' is disabled.
- 170817 19:48:18 InnoDB: The InnoDB memory heap is disabled
- 170817 19:48:18 InnoDB: Mutexes and rw_locks use GCC atomic builtins
- 170817 19:48:18 InnoDB: Compressed tables use zlib 1.2.3
- 170817 19:48:18 InnoDB: Using Linux native AIO
- /www/server/mysql/bin/mysqld: Can't create/write to file '/tmp/ibvoHEO8' (Errcode: 13)
- 170817 19:48:18 InnoDB: Error: unable to create temporary file; errno: 13
- 170817 19:48:18 [ERROR] Plugin 'InnoDB' init function returned error.
- 170817 19:48:18 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
- 170817 19:48:18 [ERROR] Unknown/unsupported storage engine: InnoDB
- 170817 19:48:18 [ERROR] Aborting
- 170817 19:48:18 [Note] /www/server/mysql/bin/mysqld: Shutdown complete
- 170817 19:50:51 [Note] Plugin 'FEDERATED' is disabled.
- 170817 19:50:51 InnoDB: The InnoDB memory heap is disabled
- 170817 19:50:51 InnoDB: Mutexes and rw_locks use GCC atomic builtins
- 170817 19:50:51 InnoDB: Compressed tables use zlib 1.2.3
- 170817 19:50:51 InnoDB: Using Linux native AIO
- /www/server/mysql/bin/mysqld: Can't create/write to file '/tmp/ibbilC0q' (Errcode: 13)
- 170817 19:50:51 InnoDB: Error: unable to create temporary file; errno: 13
- 170817 19:50:51 [ERROR] Plugin 'InnoDB' init function returned error.
- 170817 19:50:51 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
- 170817 19:50:51 [ERROR] Unknown/unsupported storage engine: InnoDB
- 170817 19:50:51 [ERROR] Aborting
- 170817 19:50:51 [Note] /www/server/mysql/bin/mysqld: Shutdown complete
- 170817 19:59:48 [Note] Plugin 'FEDERATED' is disabled.
- 170817 19:59:48 InnoDB: The InnoDB memory heap is disabled
- 170817 19:59:48 InnoDB: Mutexes and rw_locks use GCC atomic builtins
- 170817 19:59:48 InnoDB: Compressed tables use zlib 1.2.3
- 170817 19:59:48 InnoDB: Using Linux native AIO
- /www/server/mysql/bin/mysqld: Can't create/write to file '/tmp/ibQiZm9U' (Errcode: 13)
- 170817 19:59:48 InnoDB: Error: unable to create temporary file; errno: 13
- 170817 19:59:48 [ERROR] Plugin 'InnoDB' init function returned error.
- 170817 19:59:48 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
- 170817 19:59:48 [ERROR] Unknown/unsupported storage engine: InnoDB
- 170817 19:59:48 [ERROR] Aborting
- 170817 19:59:48 [Note] /www/server/mysql/bin/mysqld: Shutdown complete
复制代码 以上错误从重启服务器开始
我好像发现一个BUG,不知道是我机器的问题还是什么:
我在bt面板关闭ssh后,又尝试打开ssh,发现ssh无法打开。
如何当我VNC登录服务器,尝试启动ssh时,服务器提示 “/var/empty/sshd must be owned by root and not group or world-writable.”
/var/empty/sshd 目录没有权限- - 当我输入:
- chown root:root /var/empty/sshd
- chmod 711 /var/empty/sshd
- /etc/init.d/sshd start
复制代码 后发现ssh又正常启动了,不知道这是否算一个BUG。
以上,麻烦大神帮我看看mysql无法启动的问题
[qq]2435932516[/qq] QQ2435932516
|
|