FATAL ERROR: please install the following Perl modules before executing

  CentOS使用安装MySQL执行“mysql_install_db --datadir=/storage/mysql/”初始化数据目录时报错,如何解决?
FATAL ERROR: please install the following Perl modules before executing /usr/bin/mysql_install_db:
Data::Dumper
已邀请:

liuliangsong - 80后IT民工

赞同来自:

  你的CentOS7是最小安装吧,需要安装“perl-Module-Install”才能使用“mysql_install_db”命令,你可以使用“yum install perl-Module-Install”后在执行“mysql_install_db”命令:
[root@aiezu.com ~]# yum -y install perl-module-install
[root@aiezu.com ~]# mkdir -p /storage/mysql/
[root@aiezu.com ~]# mysql_install_db --datadir=/storage/mysql/
[root@aiezu.com ~]# chown -R mysql.mysql /storage/mysql/

要回复问题请先登录注册