centos 7安装mysql报错bad interpreter: No such file or directory 错误的解释器,未找到目录

转自https://www.cnblogs.com/zhjh256/p/5728878.html

centos 7安装mysql报错-bash: ./scripts/mysql_install_db: /usr/bin/perl: bad interpreter: No such file or directory
[root@localhost 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 即可。。

猜你喜欢

转载自blog.csdn.net/hzq450013155/article/details/81259047