mysql 初始化常见问题
初始化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