知识
助手
最大化  清空记录  历史记录
   2133  
查询码: 00000054
centos安装mysql5.7.19报 error while loading shared libraries: libaio.so.1
来源:https://blog.csdn.net/m0_38113129/article/details/79056047
作者: 系统管理员 于 2019年03月11日 发布在分类 / 配置安装 / linux / wcp部署 ,于 2019年03月11日 编辑
linux mysql



mysql数据库初始化时出现了报错:

/usr/local/mysql/bin/mysqld --initailize --user=mysql --basedir=/usr/local/mysql --datadir=/www/mysql/data

运行该命令后出现的报错如下:

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

出现该问题首先检查该链接库文件有没有安装使用 命令进行核查

rpm -qa|grep libaio

运行该命令后发现系统中无该链接库文件

使用命令,yum install  libaio-devel.x86_64

yum 安装软件时出现 is this ok [y/d/n]

y下载安装

d只下载不安装

n不安装

选择y

安装成功后,继续运行数据库的初始化命令,提示成功。


0人参与



 历史版本

修改日期 修改人 备注
2019-03-11 12:41:37[当前版本] 系统管理员 格式调整
2019-03-11 12:41:18 系统管理员 CREAT

wcp知识库系统-京ICP备15024440号-1 -V 5.1.3 -wcp