当前位置:论坛首页 > Linux面板 > 求助

Mysql无法启动

发表在 Linux面板2017-8-17 20:16 [复制链接] 12 4264

本帖最后由 1500181524oxjk 于 2017-8-17 20:17 编辑

我用服务器建了一个论坛。
早上还好好的,晚上我一打开论坛就发现 “ XXX(数据库表) Don‘t written.
然后 我登录BT面板 尝试重启 Mysql 发现 Mysql 启动失败。
之后 我登录ssh 尝试启动mysql
输入命令 “service mysqld start
提示
  1. Starting MySQL.
  2. ERROR! The server quit without updating PID file (/www/server/data/Myserver.pid).
复制代码
不得已 我在网上搜了大量资料,方法都用了,就是无法启动。
附上mysql错误日志:
  1. 170817 17:37:00 [Note] /www/server/mysql/bin/mysqld: Normal shutdown

  2. 170817 17:37:00 [Note] Event Scheduler: Purging the queue. 0 events
  3. 170817 17:37:00  InnoDB: Starting shutdown...
  4. 170817 17:37:02  InnoDB: Shutdown completed; log sequence number 86366295
  5. 170817 17:37:02 [Note] /www/server/mysql/bin/mysqld: Shutdown complete

  6. 170817 19:45:07 [Note] Plugin 'FEDERATED' is disabled.
  7. 170817 19:45:07 InnoDB: The InnoDB memory heap is disabled
  8. 170817 19:45:07 InnoDB: Mutexes and rw_locks use GCC atomic builtins
  9. 170817 19:45:07 InnoDB: Compressed tables use zlib 1.2.3
  10. 170817 19:45:07 InnoDB: Using Linux native AIO
  11. /www/server/mysql/bin/mysqld: Can't create/write to file '/tmp/ib10uJtD' (Errcode: 13)
  12. 170817 19:45:07  InnoDB: Error: unable to create temporary file; errno: 13
  13. 170817 19:45:07 [ERROR] Plugin 'InnoDB' init function returned error.
  14. 170817 19:45:07 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
  15. 170817 19:45:07 [ERROR] Unknown/unsupported storage engine: InnoDB
  16. 170817 19:45:07 [ERROR] Aborting

  17. 170817 19:45:07 [Note] /www/server/mysql/bin/mysqld: Shutdown complete

  18. 170817 19:45:42 [Note] Plugin 'FEDERATED' is disabled.
  19. 170817 19:45:42 InnoDB: The InnoDB memory heap is disabled
  20. 170817 19:45:42 InnoDB: Mutexes and rw_locks use GCC atomic builtins
  21. 170817 19:45:42 InnoDB: Compressed tables use zlib 1.2.3
  22. 170817 19:45:42 InnoDB: Using Linux native AIO
  23. /www/server/mysql/bin/mysqld: Can't create/write to file '/tmp/ib9DlizF' (Errcode: 13)
  24. 170817 19:45:42  InnoDB: Error: unable to create temporary file; errno: 13
  25. 170817 19:45:42 [ERROR] Plugin 'InnoDB' init function returned error.
  26. 170817 19:45:42 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
  27. 170817 19:45:42 [ERROR] Unknown/unsupported storage engine: InnoDB
  28. 170817 19:45:42 [ERROR] Aborting

  29. 170817 19:45:42 [Note] /www/server/mysql/bin/mysqld: Shutdown complete

  30. 170817 19:46:22 [Note] Plugin 'FEDERATED' is disabled.
  31. 170817 19:46:22 InnoDB: The InnoDB memory heap is disabled
  32. 170817 19:46:22 InnoDB: Mutexes and rw_locks use GCC atomic builtins
  33. 170817 19:46:22 InnoDB: Compressed tables use zlib 1.2.3
  34. 170817 19:46:22 InnoDB: Using Linux native AIO
  35. /www/server/mysql/bin/mysqld: Can't create/write to file '/tmp/ibmp4TG4' (Errcode: 13)
  36. 170817 19:46:22  InnoDB: Error: unable to create temporary file; errno: 13
  37. 170817 19:46:22 [ERROR] Plugin 'InnoDB' init function returned error.
  38. 170817 19:46:22 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
  39. 170817 19:46:22 [ERROR] Unknown/unsupported storage engine: InnoDB
  40. 170817 19:46:22 [ERROR] Aborting

  41. 170817 19:46:22 [Note] /www/server/mysql/bin/mysqld: Shutdown complete

  42. 170817 19:48:18 [Note] Plugin 'FEDERATED' is disabled.
  43. 170817 19:48:18 InnoDB: The InnoDB memory heap is disabled
  44. 170817 19:48:18 InnoDB: Mutexes and rw_locks use GCC atomic builtins
  45. 170817 19:48:18 InnoDB: Compressed tables use zlib 1.2.3
  46. 170817 19:48:18 InnoDB: Using Linux native AIO
  47. /www/server/mysql/bin/mysqld: Can't create/write to file '/tmp/ibvoHEO8' (Errcode: 13)
  48. 170817 19:48:18  InnoDB: Error: unable to create temporary file; errno: 13
  49. 170817 19:48:18 [ERROR] Plugin 'InnoDB' init function returned error.
  50. 170817 19:48:18 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
  51. 170817 19:48:18 [ERROR] Unknown/unsupported storage engine: InnoDB
  52. 170817 19:48:18 [ERROR] Aborting

  53. 170817 19:48:18 [Note] /www/server/mysql/bin/mysqld: Shutdown complete

  54. 170817 19:50:51 [Note] Plugin 'FEDERATED' is disabled.
  55. 170817 19:50:51 InnoDB: The InnoDB memory heap is disabled
  56. 170817 19:50:51 InnoDB: Mutexes and rw_locks use GCC atomic builtins
  57. 170817 19:50:51 InnoDB: Compressed tables use zlib 1.2.3
  58. 170817 19:50:51 InnoDB: Using Linux native AIO
  59. /www/server/mysql/bin/mysqld: Can't create/write to file '/tmp/ibbilC0q' (Errcode: 13)
  60. 170817 19:50:51  InnoDB: Error: unable to create temporary file; errno: 13
  61. 170817 19:50:51 [ERROR] Plugin 'InnoDB' init function returned error.
  62. 170817 19:50:51 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
  63. 170817 19:50:51 [ERROR] Unknown/unsupported storage engine: InnoDB
  64. 170817 19:50:51 [ERROR] Aborting

  65. 170817 19:50:51 [Note] /www/server/mysql/bin/mysqld: Shutdown complete

  66. 170817 19:59:48 [Note] Plugin 'FEDERATED' is disabled.
  67. 170817 19:59:48 InnoDB: The InnoDB memory heap is disabled
  68. 170817 19:59:48 InnoDB: Mutexes and rw_locks use GCC atomic builtins
  69. 170817 19:59:48 InnoDB: Compressed tables use zlib 1.2.3
  70. 170817 19:59:48 InnoDB: Using Linux native AIO
  71. /www/server/mysql/bin/mysqld: Can't create/write to file '/tmp/ibQiZm9U' (Errcode: 13)
  72. 170817 19:59:48  InnoDB: Error: unable to create temporary file; errno: 13
  73. 170817 19:59:48 [ERROR] Plugin 'InnoDB' init function returned error.
  74. 170817 19:59:48 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
  75. 170817 19:59:48 [ERROR] Unknown/unsupported storage engine: InnoDB
  76. 170817 19:59:48 [ERROR] Aborting

  77. 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 目录没有权限- - 当我输入:
  1. chown root:root /var/empty/sshd
  2. chmod 711 /var/empty/sshd
  3. /etc/init.d/sshd start
复制代码
后发现ssh又正常启动了,不知道这是否算一个BUG。
以上,麻烦大神帮我看看mysql无法启动的问题
[qq]2435932516[/qq] QQ2435932516
使用道具 举报 只看该作者 回复
发表于 2017-8-17 21:36:16 | 显示全部楼层
分别输入df -h
df -i看看
使用道具 举报 回复 支持 反对
发表于 2017-8-17 22:11:34 | 显示全部楼层
不是我说,我今天就遇到这个问题 按照官网的教程来都没有用,MYSQL权限都正确 硬盘几百G 就重启了一下服务器就这样了,关键我还是在面板上操作重启服务器!哎,还有一个BUG就是如果在面板手动改SSH端口那么恭喜你,SSH就无法启动了 这要是独立服务器 肯定就只能找服务商 坑爹!

阿里云1折起:http://t.cn/AisXTIoi  发表于 2020-2-2 20:59
使用道具 举报 回复 支持 反对
发表于 2017-8-17 22:23:10 | 显示全部楼层
河妖 发表于 2017-8-17 21:36
分别输入df -h
df -i看看
  1. [root@Myserver ~]# df -h
  2. Filesystem            Size  Used Avail Use% Mounted on
  3. /dev/mapper/vg_have-lv_root
  4.                       8.3G  2.9G  5.1G  36% /
  5. tmpfs                 935M   20K  935M   1% /dev/shm
  6. /dev/xvda1            477M   90M  362M  20% /boot
  7. /dev/mapper/Xvdbgroup-xvdb1
  8.                        42G  1.5G   38G   4% /home
  9. [root@Myserver ~]# df -i
  10. Filesystem            Inodes  IUsed   IFree IUse% Mounted o
  11. /dev/mapper/vg_have-lv_root
  12.                       559728 104049  455679   19% /
  13. tmpfs                 239215      2  239213    1% /dev/shm
  14. /dev/xvda1            128016     56  127960    1% /boot
  15. /dev/mapper/Xvdbgroup-xvdb1
  16.                      2747136   6962 2740174    1% /home
  17. [root@Myserver ~]#























复制代码


使用道具 举报 回复 支持 反对
发表于 2017-8-17 22:24:10 | 显示全部楼层
z123tang 发表于 2017-8-17 22:11
不是我说,我今天就遇到这个问题 按照官网的教程来都没有用,MYSQL权限都正确 硬盘几百G 就重启了一下服务 ...

是的 更改ssh那里可能有问题。
使用道具 举报 回复 支持 反对
发表于 2017-8-18 09:06:02 | 显示全部楼层
1500181524oxjk 发表于 2017-8-17 22:24
是的 更改ssh那里可能有问题。

论坛私信我ssh信息 私信完之后回复一下 给你看看
使用道具 举报 回复 支持 反对
发表于 2017-8-18 09:14:20 | 显示全部楼层
河妖 发表于 2017-8-18 09:06
论坛私信我ssh信息 私信完之后回复一下 给你看看

已经私信给你了 麻烦了
使用道具 举报 回复 支持 反对
发表于 2017-8-18 09:34:11 | 显示全部楼层
你好已经解决了 tmp目录权限不对 需要777权限
使用道具 举报 回复 支持 反对
发表于 2017-8-18 09:37:33 | 显示全部楼层
河妖 发表于 2017-8-18 09:34
你好已经解决了 tmp目录权限不对 需要777权限

好的谢谢
使用道具 举报 回复 支持 反对
发表于 2017-8-18 09:47:44 | 显示全部楼层

之前有进行过什么操作吗 有没有在根目录创建过FTP
使用道具 举报 回复 支持 反对
发表于 2017-8-18 10:09:45 | 显示全部楼层
本帖最后由 1500181524oxjk 于 2017-8-18 10:12 编辑
河妖 发表于 2017-8-18 09:47
之前有进行过什么操作吗 有没有在根目录创建过FTP

没有,似乎刚刚ssh 又连接不了了 好像是私匙文件被误设置为了755权限 系统认为权限太高 不承认密匙 ,设置为700权限 又可以了。
使用道具 举报 回复 支持 反对
发表于 2017-8-18 10:12:08 | 显示全部楼层
河妖 发表于 2017-8-18 09:47
之前有进行过什么操作吗 有没有在根目录创建过FTP

我之前也遇到过,那时候是用 “yum install java” 安装java
然后数据库就出现了刚刚的状态,然后我只好重装系统。现在看来应该是在安装软件的过程中
tmp目录权限被改了,但是刚刚我并没有安装软件。
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表