[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 即可。。
本文轉自 Mr_sheng 51CTO部落格,原文連結:http://blog.51cto.com/sf1314/2062149