Mysql settings allow Internet access, mysql allows Internet access
1) Open mysql.exe (MySQL Command Line Client) and enter the password
2. Input: use mysql;
3. query host input: select user, host from user;
4. Create a host (skip this step if the host value "%" exists)
If the host value "%" does not exist, execute the following two sentences:
Mysql> update user set host = '%' where user = 'root ';
Mysql> flush privileges;
5. Authorized Users
(1) Any host is connected to the mysql server with the user root and password pwd
Mysql> grant all privileges on *. * TO 'root' @ '%' identified by 'pwd' with grant option;
Mysql> flush privileges;
(2) The host with the specified IP address (for example, 192.168.1.100) is connected to the mysql server with the user tuser and password tpwd.
Mysql> grant all privileges on *. * TO 'tuser' @ '192. 168.1.100 'identified BY 'tpwd' with grant option;
Mysql> flush privileges;