欢迎光临
一直在努力

centos 7安装mysql报错

[[email protected] mysql]# ./scripts/mysql_install_db  –user=mysql –datadir=/data/mysql

-bash: ./scripts/mysql_install_db: /usr/bin/perl: bad interpreter: No such file or directory

提示注释器错误,没有/usr/bin/perl文件或者档案,解决办法(安装perl跟perl-devel即可):

执行  yum -y install perl perl-devel后再初始化数据库即可。

bin/mysql_install_db

FATAL ERROR: please install the following Perl modules before executing /usr/bin/mysql_install_db:

Data::Dumper

yum install -y perl-Data-Dumper 即可

赞(0)
未经允许不得转载:在路上 » centos 7安装mysql报错

相关推荐

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址