CentOS6.5 登录mysql 运行SQL语句总是报错解决
2016-03-23 16:25
671 查看
会报:
centos6.5 Access denied for user 'root'@'localhost' (using password: NO)
mysqladmin: unable to change password; error: 'Your password does not satisfy the current policy req
You must reset your password using ALTER USER statement before executing this statement.
Warning: Since password will be sent to server in plain text, use ssl connection to ensure password
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements 等,mysql5.7安装时会产生随机密码;
解决方法:
进入mysql
set global validate_password_policy=0; //解决密码复杂度验证
SET PASSWORD = PASSWORD('your new password');//设置新密码
flush privileges;
centos6.5 Access denied for user 'root'@'localhost' (using password: NO)
mysqladmin: unable to change password; error: 'Your password does not satisfy the current policy req
You must reset your password using ALTER USER statement before executing this statement.
Warning: Since password will be sent to server in plain text, use ssl connection to ensure password
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements 等,mysql5.7安装时会产生随机密码;
解决方法:
进入mysql
set global validate_password_policy=0; //解决密码复杂度验证
SET PASSWORD = PASSWORD('your new password');//设置新密码
flush privileges;
相关文章推荐
- MySQL中的integer 数据类型
- MySQL存储过程
- mysql中int、bigint、smallint 和 tinyint的区别与长度
- mysql load data 导出、导入 csv
- source命令执行SQL脚本文件
- MySQL创建用户及权限控制
- MySQL管理数据表
- linux下mysql添加用户
- mysql procedure
- mysql触发器
- MySQL 备份和恢复策略
- mac下安装mysql(转载)
- mysql 修改编码 Linux/Mac/Unix/通用(杜绝修改后无法启动的情况!)
- MySQL数据的导出、导入(mysql内部命令:mysqldump、mysql)
- mysql数据行转列
- Linux下修改MySQL编码的方法
- MySQL Server 日志
- MySQL 安全事宜
- MySQL 备份与恢复