Home > Database > Mysql Tutorial > 遇到mysql不可外连的root的解决方法。

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

WBOY
Release: 2016-06-07 16:38:35
Original
1506 people have browsed it

其实就是利用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` ;

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template