Enable remote connection for MySQL on VPS, cloud hosts, and dedicated servers using the root or platform account.
Published: 2012-04-22
Note: Shared IP hosts are not supported (i.e., shared IP hosts assigned IPs 10.100.1.* or 192.168.*.* are not supported)
I. Vps with independentIP, cloud hosts, dedicated hosts
First, remotely log in to the server. If you do not know how to connect remotely, please first refer to:http://www.west.cn/faq/list.asp?unid=417
Allow port 3306 on the server: http://www.west.cn/faq/list.asp?unid=420
Warning: Enabling root remote login poses security risks. Please set the root password as complex as possible, or change the host value to your local IP address (if your local IP is not fixed, the IP will change after re-dialing to connect to the Internet after modification, and remote connection will no longer be possible)
1.Windows system hosts:
Method ①: You can usephpmyadmin to connect and log in tomysql, select themysql database, open theuser table, select the user for which you need to enable remote connection, click Quick Edit, and change the value in thehost column to% to complete it.
Method ②: Modify it using commands. Open Start—Run—entercmd and press Enter, then enter the content in the green box. Note that semicolons included must be entered in English input mode; the black part is displayed by the system.

mysql> use mysql;
mysql> update user set host="%" where user="root";
mysql> flush privileges;
2.Linux system hosts:
Linux systems withWD preinstalled: you can log in to the control panel and clickphpmyadmin

Or directly visithttp:// the free second-level domain:8080/phpmyadmin/ and enter themysql account and password to log in. The subsequent operations are the same as Method ① for independentIP; the command method is the same as Method ② forwindows systems, except that it is not executed undercmd, but after logging in remotely viassh, run the commands directly.
Mysql management tool connection import/export: https://www.west.cn/faq/list.asp?unid=430
For Mysql command line, refer to: http://www.west.cn/faq/list.asp?unid=566
BT Panel:
Find the corresponding database, click the “Permissions” button, and then select the “Everyone” option. If you want to enable permissions for the root account, you can use the method mentioned above to log in to phpmyadmin and modify it.

