下面讲讲关于解决mysql安装错误的办法,文字的奥妙在于贴近主题相关。所以,闲话就不谈了,我们直接看下文吧,相信看完解决mysql安装错误的办法这篇文章你一定会有所受益。
问题!!
[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 base
2.
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_64
3.启动报错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
对于以上解决mysql安装错误的办法相关内容,大家还有什么不明白的地方吗?或者想要了解更多相关,可以继续关注我们的行业资讯板块。