VPS侦探论坛

 找回密码
 注册
查看: 279|回复: 2

CentOS7.2.1511 安装lnmp1.6数据库无法启动

[复制链接]
发表于 2021-9-4 15:18:24 | 显示全部楼层 |阅读模式



默认安装或者自选安装均无法启动,日志如下,请大佬指点下,谢谢!

============================== Check install ==============================
Checking ...
Nginx: OK
MySQL: OK
PHP: OK
PHP-FPM: OK
Clean Web Server src directory...
+------------------------------------------------------------------------+
|          LNMP V1.6 for CentOS Linux Server, Written by Licess          |
+------------------------------------------------------------------------+
|           For more information please visit https://lnmp.org           |
+------------------------------------------------------------------------+
|    lnmp status manage: lnmp {start|stop|reload|restart|kill|status}    |
+------------------------------------------------------------------------+
|  phpMyAdmin: http://IP/phpmyadmin/                                     |
|  phpinfo: http://IP/phpinfo.php                                        |
|  Prober:  http://IP/p.php                                              |
+------------------------------------------------------------------------+
|  Add VirtualHost: lnmp vhost add                                       |
+------------------------------------------------------------------------+
210904 12:01:10 [Note] Plugin 'FEDERATED' is disabled.
/usr/local/mysql/bin/mysqld: Table 'mysql.plugin' doesn't exist
210904 12:01:10 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
210904 12:01:10 InnoDB: The InnoDB memory heap is disabled
210904 12:01:10 InnoDB: Mutexes and rw_locks use GCC atomic builtins
210904 12:01:10 InnoDB: Compressed tables use zlib 1.2.11
210904 12:01:10 InnoDB: Using Linux native AIO
210904 12:01:10 InnoDB: Initializing buffer pool, size = 1.0G
210904 12:01:10 InnoDB: Completed initialization of buffer pool
210904 12:01:10  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 /usr/local/mysql/var/ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
210904 12:01:11 [Note] Plugin 'FEDERATED' is disabled.
/usr/local/mysql/bin/mysqld: Table 'mysql.plugin' doesn't exist
210904 12:01:11 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
210904 12:01:11 InnoDB: The InnoDB memory heap is disabled
210904 12:01:11 InnoDB: Mutexes and rw_locks use GCC atomic builtins
210904 12:01:11 InnoDB: Compressed tables use zlib 1.2.11
210904 12:01:11 InnoDB: Using Linux native AIO
210904 12:01:11 InnoDB: Initializing buffer pool, size = 1.0G
210904 12:01:11 InnoDB: Completed initialization of buffer pool
210904 12:01:11  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 /usr/local/mysql/var/ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
210904 12:01:14 [Note] Plugin 'FEDERATED' is disabled.
/usr/local/mysql/bin/mysqld: Table 'mysql.plugin' doesn't exist
210904 12:01:14 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
210904 12:01:14 InnoDB: The InnoDB memory heap is disabled
210904 12:01:14 InnoDB: Mutexes and rw_locks use GCC atomic builtins
210904 12:01:14 InnoDB: Compressed tables use zlib 1.2.11
210904 12:01:14 InnoDB: Using Linux native AIO
210904 12:01:14 InnoDB: Initializing buffer pool, size = 1.0G
210904 12:01:14 InnoDB: Completed initialization of buffer pool
210904 12:01:14  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 /usr/local/mysql/var/ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
210904 12:01:15 [Note] Plugin 'FEDERATED' is disabled.
/usr/local/mysql/bin/mysqld: Table 'mysql.plugin' doesn't exist
210904 12:01:15 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
210904 12:01:15 InnoDB: The InnoDB memory heap is disabled
210904 12:01:15 InnoDB: Mutexes and rw_locks use GCC atomic builtins
210904 12:01:15 InnoDB: Compressed tables use zlib 1.2.11
210904 12:01:15 InnoDB: Using Linux native AIO
210904 12:01:15 InnoDB: Initializing buffer pool, size = 1.0G
210904 12:01:15 InnoDB: Completed initialization of buffer pool
210904 12:01:15  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 /usr/local/mysql/var/ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
"/usr/local/mysql/var/host-10-50-78-20.err" 105L, 6055C                                   

美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2021-9-4 19:04:40 | 显示全部楼层


按反馈必读要求提供安装日志
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2021-9-5 14:54:06 | 显示全部楼层



经反复测试 ,运行./mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/var 后启动成功
美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2021-10-26 14:14 , Processed in 0.047842 second(s), 26 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表