无心 发表于 2021-9-4 15:18:24

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

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

============================== 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 Plugin 'FEDERATED' is disabled.
/usr/local/mysql/bin/mysqld: Table 'mysql.plugin' doesn't exist
210904 12:01:10 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:10InnoDB: 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 Plugin 'FEDERATED' is disabled.
/usr/local/mysql/bin/mysqld: Table 'mysql.plugin' doesn't exist
210904 12:01:11 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:11InnoDB: 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 Plugin 'FEDERATED' is disabled.
/usr/local/mysql/bin/mysqld: Table 'mysql.plugin' doesn't exist
210904 12:01:14 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:14InnoDB: 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 Plugin 'FEDERATED' is disabled.
/usr/local/mysql/bin/mysqld: Table 'mysql.plugin' doesn't exist
210904 12:01:15 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:15InnoDB: 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                                 

licess 发表于 2021-9-4 19:04:40

按反馈必读要求提供安装日志

无心 发表于 2021-9-5 14:54:06

经反复测试 ,运行./mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/var 后启动成功
页: [1]
查看完整版本: CentOS7.2.1511 安装lnmp1.6数据库无法启动