首页 > 数据库技术 > 详细

Centos7.3 mysql5.7 密码修改及远程登陆配置

时间:2018-05-11 22:22:29      阅读:230      评论:0      收藏:0      [点我收藏+]

修改密码命令

set password for root@localhost = password(‘admin@123‘);

连接命令

ln -s /usr/local/mysql/bin/mysql /usr/bin

允许远程连接mysql配置

update user set host=‘%‘ where user=‘root‘;

如果出现错误:ERROR 1175 (HY000): You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column

则输入 SET SQL_SAFE_UPDATES = 0; 然后再次update

最后别忘了

flush privileges;

 

Centos7.3 mysql5.7 密码修改及远程登陆配置

原文:https://www.cnblogs.com/xinyibufang/p/9026364.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!