linux上本地安装mysql5.6初始化报错
[root@localhost mysql]# scripts/mysql_install_db --user=mysql
FATAL ERROR: please install the following Perl modules before executing scripts/mysql_install_db:
Data::Dumper
下载对应的包
[root@localhost mysql]# yum -y install autoconf
.
.
.
#这里省略安装过程
Installed:
autoconf.noarch 0:2.69-11.el7
Dependency Installed:
m4.x86_64 0:1.4.16-10.el7 perl-Data-Dumper.x86_64 0:2.145-3.el7
Complete!
接收初始化就不会报错了
[root@localhost mysql]# scripts/mysql_install_db --user=mysql
Installing MySQL system tables...2021-08-01 23:39:50 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.