您的位置 首页 linux 依赖

解决方案:mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory

mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory

初始化mysql 的时候 报错

mysqld --initialize-insecure --user=mysql --basedir=/usr/local/mysql --datadir=/mnt/data/mysql/data

 

需要安装 libaio.so.1

yum install -y libaio.so.1

 

结果报错:

Last metadata expiration check: 0:36:24 ago on Thu 05 Oct 2023 05:17:55 PM CST.
No match for argument: libaio.so.1
Error: Unable to find a match: libaio.so.1

 

下载:

https://centos.pkgs.org/7/centos-x86_64/libaio-0.3.109-13.el7.i686.rpm.html

 

64位系统安装:



wget http://mirror.centos.org/centos/7/os/x86_64/Packages/libaio-0.3.109-13.el7.x86_64.rpm

rpm -ivh libaio-0.3.107-10.el6.x86_64.rpm

32位系统现在很少了,yum似乎默认安装32位的:

yum install libaio.so.1

随机推荐

 

 

欢迎来撩 : 汇总all

白眉大叔

关于白眉大叔linux云计算: 白眉大叔

热门文章