錯誤信息
Linux CenterOs 64位中安裝 MySQL-server-5.5.25a-1.rhel5.x86_64.rpm 出現以下錯誤
[root@localhost upload]# rpm -ivh MySQL-server-5.5.25a-1.rhel5.x86_64.rpm
error: Failed dependencies:
libaio.so.1()(64bit) is needed by MySQL-server-5.5.25a-1.rhel5.x86_64
libaio.so.1(LIBAIO_0.1)(64bit) is needed by MySQL-server-5.5.25a-1.rhel5.x86_64
libaio.so.1(LIBAIO_0.4)(64bit) is needed by MySQL-server-5.5.25a-1.rhel5.x86_64
從以上錯誤信息可以看出是因為缺少庫libaio,所以需要安裝libaio
安裝libaio-0.3.107-10.el6.x86_64.rpm
下載地址:
http://mirror.centos.org/centos/6/os/x86_64/Packages/libaio-0.3.107-10.el6.x86_64.rpm
安裝完成后,即可成功安裝MySQL-server-5.5.25a-1.rhel5.x86_64.rpm
錯誤信息
error: Failed dependencies:
/usr/bin/perl is needed by MySQL-server-5.6.14-1.linux_glibc2.5.x86_64
錯誤信息:
[root@localhost mysql]# mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
解決方法:
方法一:
# /etc/init.d/mysql stop
# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
# mysql -u root mysql
mysql> UPDATE user SET Password=PASSWORD(’newpassword’) where USER=’root’;
mysql> FLUSH PRIVILEGES;
mysql> quit
# /etc/init.d/mysql restart
# mysql -uroot -p
Enter password: <輸入新設的密碼newpassword>
錯誤信息