安装 MySQL 过程中,执行安装命令报错。
1、安装命令
./scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --pid-file=/usr/local/mysql/data/miracle.pid
2、报错信息
FATAL ERROR: please install the following Perl modules before executing scripts/mysql_install_db: Data::Dumper
3、解决方案
安装 Dumper
yum install -y perl-Data-Dumper