问题2: [root@kh-01 mysql]# ./scripts/mysql_install_db --user=mysql --datadir=/data/mysql 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 libaio* -y
安装包时遇到缺少某些模块/包问题的一般思路,比如如下错误提示: FATAL ERROR: please install the following Perl modules before executing ./scripts/mysql_install_db: Data::Dumper 方法一: 先模糊搜索可能的安装包-->安装搜索到的安装包-->再次执行,若不报错则说明安装正确. yum list|grep perl|grep -i dumper 方法二: 网上搜索该问题 www.baidu.com www.bing.com www.google.com