mysql设置用户登录host的权限
2022/1/28 19:04:59
本文主要是介绍mysql设置用户登录host的权限,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
#======修改对应host的登陆密码====== use mysql; update user set authentication_string=password('abcabcabc') where user='root' and Host='%'; grant all privileges on *.* to 'root'@'10.40.91.130' identified by 'abcabcabc' with grant option; #======修改host====== update user set host="localhost" where user='bdpuser' and host='%'; update user set host="localhost" where user='bdpuser' and host='%'; update user set host="ldcdn197" where user='root' and host='%';
#mysql设置存储密码的根据其他字段进行加密 update b_user set pwd=MD5(concat('123456{',字段名,'}))
这篇关于mysql设置用户登录host的权限的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-09-21MySQL集群部署资料:新手入门教程
- 2024-09-21MySQL集群资料:初学者入门指南
- 2024-09-21部署MySQL集群资料:新手入门教程
- 2024-09-20MySQL集群部署教程:新手入门指南
- 2024-09-20MySQL集群教程:初学者必备指南
- 2024-09-20部署MySQL集群项目实战:新手入门教程
- 2024-09-20如何部署MySQL集群:简单教程
- 2024-09-20MySQL集群部署:新手入门指南
- 2024-09-20部署MySQL集群学习:入门指南
- 2024-09-20部署MySQL集群入门教程