error while loading shared libraries libaio.so.1

You may get following error message while doing post installation steps of MySQL from source package.

root@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:~#

To fix this error we need to install “libaio” package in the server before we can initialize MySQL data directory and its corresponding system tables using “mysql_install_db” script.

For Redhat based machine run the following command:

[root@dbhost01~]# yum install libaio

For Debian based system the corresponding command would be:

root@dbhost01:~# apt-get install libaio1

Once this package is installed, run the “mysql_install_db” script again. This time you can initialize the MySQL data directory and its corresponding system tables without any errors.

Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts