error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or
Posted 我是嘉心糖
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or相关的知识,希望对你有一定的参考价值。
centos8安装mysql8.0出现的问题
[root@hecs-70178 mysql8.0.11] ./bin/mysqld --user=mysql --basedir=/usr/local/mysql/mysql8.0.11/ --datadir=/usr/local/mysql/mysql8.0.11/data/ --initialize
./bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
在执行初始化的时候发现了错误libaio包还没安装
这个时候就去安装libaio包
yum install libaio
发现又有报错
Errors during downloading metadata for repository 'AppStream':
- Status code: 404 for https://repo.huaweicloud.com/centos/8/AppStream/x86_64/os/repodata/repomd.xml (IP: 59.39.0.154)
Error: Failed to download metadata for repo 'AppStream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
这里出现的问题是centos8 yum源的配置问题,因为国内被墙了就会导致404
这个时候可以看这个大哥的文章
https://blog.csdn.net/linzi19900517/article/details/122846919
只要更换了yum源以后再次yum就可以装了libaio包了
安装了libaiio以后
[root@hecs-70178 mysql8.0.11]./bin/mysqld --user=mysql --basedir=/usr/local/mysql/mysql8.0.11/ --datadir=/usr/local/mysql/mysql8.0.11/data/ --initialize
2022-02-23T03:39:50.211967Z 0 [System] [MY-013169] [Server] /usr/local/mysql/mysql8.0.11/bin/mysqld (mysqld 8.0.11) initializing of server in progress as process 539846
2022-02-23T03:39:52.821735Z 5 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: q)ob0mUhIM?J
2022-02-23T03:39:54.042875Z 0 [System] [MY-013170] [Server] /usr/local/mysql/mysql8.0.11/bin/mysqld (mysqld 8.0.11) initializing of server has completed
重新初始化mysql成功
以上是关于error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or的主要内容,如果未能解决你的问题,请参考以下文章
error while loading shared libraries错误解决
error while loading shared libraries错误解决
error while loading shared libraries: libmcrypt.so.4
error while loading shared libraries: libaio.so.1