mysql_install_db: /usr/bin/perl: bad interpreter:

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql_install_db: /usr/bin/perl: bad interpreter:相关的知识,希望对你有一定的参考价值。

centos 7安装mysql报错-bash: ./scripts/mysql_install_db: /usr/bin/perl: bad interpreter: No such file or directory

[[email protected] mysql]# ./scripts/mysql_install_db  --user=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 即可。。


以上是关于mysql_install_db: /usr/bin/perl: bad interpreter:的主要内容,如果未能解决你的问题,请参考以下文章

bash:scripts/mysql_install_db: 没有这样的文件或目录

linux mysql ,用scripts/mysql_install_db显示没有文件,scripts/mysql_install_db.sh权限不足,我是root

mysql_install_db: /usr/bin/perl: bad interpreter:

mysql_install_db 给出错误

初始化mysql数据库 /usr/bin/mysql_install_db执行时报错

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