skip to main |
skip to sidebar
Remote connection to MYSQL on WAMP server
- Install WampServer on your server computer
- Open the my.ini file located at “\wamp\bin\mysql\mysql5.6.17”. Note the 5.6.17 may differ based on your version.
- Find the line that says [mysqld].
- Add this code after this line: bind-address = [server_ip]
- Replace [server_ip] with the static IP address of your server.
- Open config.inc.php located at “\wamp\apps\phpmyadmin4.1.14”. Note the 4.1.14 may differ based on your version.
- Locate the following code: $cfg[‘Servers’][$i][‘host’] = ‘127.0.0.1’
- Change the 127.0.0.1 to the static IP address of your server.
- Configure your firewall to allow connection through the default Apache and MySQL ports.
- Open the control panel on the server computer
- Select System and Security –> Windows Firewall –> Advanced Settings
- In the left pane, select “Inbound Rules” and then choose “New Rule…” on the right pane.
- Select “Port” and click “Next”
- Select “TCP” and enter the default ports for Apache and MySQL (80, 3306) in the text box next to “Specific local ports:” Note: be sure to change these if you changed them in your wampserver (i.e. my.ini).
- Choose “Allow the Connection” and click “Next”
- Check all the domains you want to allow these ports (i.e Domain, Private, Public)
- Specify a name for this rule and click “finish”
- Restart all services and now you should be able to connect to your database.
No comments:
Post a Comment