本文共 1300 字,大约阅读时间需要 4 分钟。
问题!!
[root@lsx-001 mysql]# ./scripts/mysql_install_db --user=mysql --datadir=/data/mysql FATAL ERROR: please install the following Perl modules before executing ./scripts/mysql_install_db: Data::Dumper 解决办法安装 [root@lsx-02 mysql]# yum install -y autoconf[root@lsx-001 mysql]# yum list|grep -i perl |grep -i dumper
perl-Data-Dumper.x86_64 2.145-3.el7 base2.
Installing MySQL system tables..../bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory[root@lsx-02 mysql]# yum list |grep 'libaio'
[root@lsx-02 mysql]# yum install -y libaio-devel.x86_643.启动报错Starting MySQL.Logging to '/data/mysql/localhost.localdomain.err'.
./usr/local/mysql/bin/mysqld_safe: line 178: 2830 Killed nohup /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/data/mysql --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=/data/mysql/localhost.localdomain.err --pid-file=/data/mysql/localhost.localdomain.pid < /dev/null > /dev/null 2>&1 ERROR! The server quit without updating PID file (/data/mysql/localhost.localdomain.pid). 解决办法: 1.cd /usr/local/mysql(进入mysql安装目录) 2.chown -R mysql.mysql . 3.su - mysql 4.cd /usr/local/mysql 5.scripts/mysql_install_db本文转自 虾米的春天 51CTO博客,原文链接:http://blog.51cto.com/lsxme/2047996,如需转载请自行联系原作者