MySQL Forums
Forum List  »  Newbie

Re: Cannot Connect to Database on localhost unless connected to internet
Posted by: Go SoSo
Date: August 08, 2011 06:27AM

yes! through client program works fine BUT only if i connect to the internet( i mean i have a single home PC, internet network connection is through broadband, i keep it offline untill when need arises then i will connect(broadband). Once the computer is open for internet traffic, both mysql and admin works, then it fails once i disconnect(broadb).

today i trying adding ::1 to host file i.e

127.0.0.1 localhost
::1 localhost

surprisingly it worked(with the entry remaining there uncommented) for client BUT still fails via PHP.

ope this clarifies..

thks

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.