MySQL Forums
Forum List  »  Newbie

Re: error 2002 (connection attempt failed)
Posted by: Barry Galbraith
Date: September 13, 2014 04:32PM

Aha!
74.208.253.192 is public internet
192.168.0.10 is private network behind a gateway router, usually an ADSL modem.

You can make the website connect to the mysql behind the router, but it's not a good idea.

What you really need in the longer term is to get mysql hosting from the smae company that supplies your web hosting.

But for development, you need to install a webserver on 192.168.0.10, and do your development there. When you have it all working how you want, then upload your php files to your webserver. Take a backup of your local mysql and restore it to your web based mysql.

You can download and install Apache for Windows, or just install IIS that comes as part of Windows. Control Panel | Programs and features | Turn Windows features on or off and select IIS.

Good luck,
Barry.

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.