简体   繁体   中英

How to remotely connect to MySQL on Windows Server 2012 R2

I have installed MySQL on a Windows Server 2012 R2 using Microsoft's Web Platform installer.

What I'm having a problem with is how to remotely connect to it? I'm able to launch the MySQL command prompt on the server and can see that it is running on port 3306, uses root as the username, the correct password and I can see the hostname (the name of the server).

I have enabled an inbound rule in Windows Firewall for port 3306 but is there anything else I need to do? I'm trying to connect using MySQL Workbench on my PC but not getting very far.

Thanks, Steven.

Most likely you need to correct your my.ini and either comment the bind-address variable, which is set to 127.0.0.1 by default, or set it to your server's IP address value.

For locations, please refer to: MySQL my.ini location

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM