centos 7安裝mysql報錯-bash: ./scripts/mysql_install_db: /usr/bin/perl: bad interpreter: No such file or

[root@localhost mysql]# ./scripts/mysql_install_db  --user=mysqlmysql

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

貌似提示註釋器錯誤,沒有/usr/bin/perl文件或者檔案,解決辦法(安裝perl跟perl-devel便可):數據庫

執行  yum -y install perl perl-develbash

後在初始化數據庫便可。ip

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

yum install -y perl-Data-Dumper 便可。。file

相關文章
相關標籤/搜索