时间:2021-07-01 10:21:17 帮助过:7人阅读
其实就是利用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的解决方法。, 感谢原作者分享。