CentOS7 Install MYSQL8.0.13 error while loading shared libraries: libaio.so.1

Install the database of mysql8.0.13 on centos7, using the installation package compiled on the official website. After downloading and decompressing, you can use it and need to install it

However, an error occurred during database initialization after decompression

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

The error after running the command is as follows:

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

in case of this problem, first check whether the link library file is installed and use the command to check

rpm -qa|grep libaio

After running the command, it is found that there is no link library file in the system

Using the command, yum install libaio-devel.x86_ 64

After the installation is successful, continue to run the initialization command of the database, indicating success

Similar Posts: