您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

遇到mysql不可外连的root的解决方法

2024/5/3 8:08:20发布18次查看
其实就是利用root的权限建立一个%的用户。具体方法: create user ‘whoami’@%’ identified by ‘whoamifortest’; grant all privileges on *.* to ‘whoami’@%’ identified by ‘whoamifortest’with grant option max_queries_per_hour 0 max_connect
其实就是利用root的权限建立一个%的用户。具体方法:
create user ‘whoami’@’%’ identified by ‘whoamifortest’;
grant all privileges on *.* to ‘whoami’@’%’ identified by ‘whoamifortest’with grant option
max_queries_per_hour 0 max_connections_per_hour 0
max_updates_per_hour 0 max_user_connections 0;
最后记得拖完库把建的用户删掉
drop user ‘whoami’@’%’;
drop database if exists `whoami` ;
原文地址:遇到mysql不可外连的root的解决方法。, 感谢原作者分享。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product