安装Mysql遇到的问题: libaio.so.1()(64bit) is needed by MySQL ***
2016-01-28 16:20
746 查看
错误信息
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>
错误信息
MySql5.6操作时报错:You must SET PASSWORD before executing this statement解决
mysql> SET PASSWORD = PASSWORD('123456');
Query OK, 0 rows affected (0.03 sec)
mysql> create database roger;
Query OK, 1 row affected (0.00 sec)
也就是用mysql> SET PASSWORD = PASSWORD('123456');这句话重新设置一次密码!
相关文章推荐
- MySQL数据库事务隔离级别(Transaction Isolation Level)
- MSSQL和MYSQL数据交互
- mysql特殊操作
- mysql select 时间戳转标准时间写法
- MySql5.6 Window超详细安装教程
- spark 连接 mysql 数据库
- 21-修改表给mysql添加外键
- mysql json字段的使用与意义
- MySQL两个表联合查询并按时间排序
- Mysql 数据库缓存cache功能
- MySQL数据库性能优化之缓存参数优化
- mysql 区分大小写查询
- 001.mysql安装(lnmp)
- mysql中如何把字符串转换成日期类型
- mysql读取自动增长主键值
- Mysql事件学习
- MySQL恢复中的几个问题解决方法
- MySQL判断表和字段不存在再添加
- MysqL的root用户不允许远程连接
- mysql存储过程