- 论坛徽章:
- 5
|
./bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
通过这一句话,就知道缺少软件libaio,用yum install -y libaio软件,安装好了,没有出现此个问题,但是又出现新的问题:
[root@centos1 mysql]# ./scripts/mysql_install_db --user=mysql --datadir=/data/mysql
WARNING: The host 'centos1' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
Installing MySQL system tables...
151225 8:54:34 [Note] ./bin/mysqld (mysqld 5.5.47) starting as process 1597 ...
OK
Filling help tables...
151225 8:54:34 [Note] ./bin/mysqld (mysqld 5.5.47) starting as process 1604 ...
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h centos1 password 'new-password'
Alternatively you can run:
./bin/mysql_secure_installation
which will 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
Please report any problems at http://bugs.mysql.com/
|
|