1>安装mysql在初始化的时候,出现/usr/local/mysql/bin/mysqld:error while loading shared libraries:libaio.so.1 :cannot open shared object file:NO such file or directory
解决方法:
on centos
yum -y install libaio
2>ERROR: 1005 Can't create table 'db' (errno: 13)
安装目录的权限问题,我做了ln -s mysql-5.5.45-linux2.6-x86_64 mysql
lrwxrwxrwx. 1 mysql mysql 29 Apr 15 15:52 mysql -> mysql-5.5.45-linux2.6-x86_64/
drwxr-xr-x. 13 root root 4096 Apr 15 15:48 mysql-5.5.45-linux2.6-x86_64mysql的用户和组都改了mysql,但是指向的mysql-5.5.45-linux2.6-x86_64还是root权限,因此输入chown -R mysql.mysql mysql-5.5.45-linux2.6-x86_64
lrwxrwxrwx. 1 mysql mysql 29 Apr 15 15:52 mysql -> mysql-5.5.45-linux2.6-x86_64/
drwxr-xr-x. 13 mysql mysql 4096 Apr 15 15:48 mysql-5.5.45-linux2.6-x86_64问题解决