初始化mysql常見錯誤,都是缺少依賴包導致
1.報錯信息:
-bash: ./scripts/mysql_install_db: /usr/bin/perl: 壞的解釋器: 沒有那個文件或目錄、
解決方法:yum install perl gcc kernel-devel
2. 報錯信息:
FATAL ERROR: please install the following Perl modules before executing ./scripts/mysql_install_db:
Data::Dumper
解決方法:yum install -y autoconf
3. 報錯信息:
Installing MySQL system tables..../bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
解決方法:yum install -y libaio-devel
4.報錯信息
error while loading shared libraries: libnuma.so.1: cannot open shared object file: No such file or directory
解決方法:yum install numactl