其实就是利用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的解决方法。, 感谢原作者分享。
声明:本网页内容旨在传播知识,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。TEL:177 7030 7066 E-MAIL:11247931@qq.com