MySQL初始化报错FATAL ERROR: please install the following Perl modules before executing /usr/local/mysql/scripts/mysql_install_db

今天在安装编译mysql的时候遇到以下报错:

[root@zabbix mysql-5.6.31]# /usr/local/mysql/scripts/mysql_install_db --user=mysql --datadir=/data/mysql-data/ --basedir=/usr/local/mysql
 FATAL ERROR: please install the following Perl modules before executing /usr/local/mysql/scripts/mysql_install_db:
 Data::Dumper

解决办法:缺少perl模块导致

[root@zabbix mysql-5.6.31]# yum install -y perl-Module-Install.noarch

安装完成之后重新再去初始化成功。

发表评论

登录... 后才能评论