When installing binary MySQL packages (version mysql-5.5.44), error occurs while loading shared Libraries:libaio.so.1:cannot open Shared object file in initialization : No such file or directory error:
[[email protected]mysql]# scripts/mysql_install_db--datadir=/data/mydata--user=mysql
Installing MySQL system tables ...
./bin/mysqld:error while loading shared libraries:libaio.so.1:cannot open Shared object file:no such file or Direc Tory
installation of system tables failed! Examine the logs in
/data/mydata for more information.
You can try to start the mysqld daemon with:
shell>./bin/mysqld--skip-grant &
and use the command line tool./bin/mysql
To connect to the MySQL database and look at the grant tables:
shell>./bin/mysql-u root MySQL
mysql> Show Tables
Try ' mysqld--help ' if you had problems with paths. Using--log
gives you a log in/data/mydata the May helpful.
Consult the MySQL manual section
' problems running mysql_install_db ', and the manual section that
describes problems on your OS. Another information source is the
MySQL Email Archives available athttp://lists.mysql.com/.
Please check the above before submitting a bug report
athttp://bugs.mysql.com/
Workaround:
[[email protected] data]# yum install-y Libaio//After installation, the initialization is OK.
[[email protected]mysql]# scripts/mysql_install_db--datadir=/data/mydata--user=mysql
Installing MySQL system tables ...
150804 18:53:23 [Note]./bin/mysqld (mysqld 5.5.44) starting as Process 1660 ...
Ok
Filling Help Tables ...
150804 18:53:24 [Note]./bin/mysqld (mysqld 5.5.44) starting as process 1667 ...
Ok
To start mysqld at boot time with to copy
Support-files/mysql.server to the right place for your system
REMEMBER to SET A PASSWORD for the MySQL root USER!
To does so, start the server, then issue the following commands:
./bin/mysqladmin-u root password ' new-password '
./bin/mysqladmin-u root-h example.com password ' New-password '
Alternatively you can run:
./bin/mysql_secure_installation
Which would also give you the option of removing the test
Databases and anonymous user created by default. This is
Strongly recommended for production servers.
See the Manual for more instructions.
You can start the MySQL daemon with:
Cd. ;./bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
CD./mysql-test; Perl mysql-test-run.pl
Problems at http://bugs.mysql.com/
This article is from the "Bread" blog, make sure to keep this source http://cuchadanfan.blog.51cto.com/9940284/1688129
Installing the binary package for MySQL appears error while loading shared libraries:libaio.so.1: