Tag Archives: error while loading shared libraries: libaio.so.1

error while loading shared libraries libaio.so.1

What are the eight life cycle hook functions of Vue>>>

Today, when installing MySQL with source code on CentOS 7, we encountered the following error:

oot@dbhost01:~# /opt/mysql/server-5.6/scripts/mysql_install_db –user=mysql
Installing MySQL system tables…/opt/mysql/server-5.6/bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
root@dbhost01:~#

When we use “MySQL”_ install_ The libaio package is required to install MySQL on Linux system. The ways to install this package on different Linux systems are summarized as follows:

1. For RedHat/CentOS system, use the following installation methods:

[root@dbhost01~]# yum install libaio

2. The Debian system is installed as follows:

root@dbhost01:~# apt-get install libaio1

After installing the package, execute “MySQL” again_ install_ This time, there will be no mistakes

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