Warning : mysqli::__construct(): (HY000/2002): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in D:\XamppServer\htdocs\SereneEvents\viewProject\index.php on line 37
Connection failed: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Other Information
I also tried pinging my database’s server using command prompt,
ping sql205.epizy.com
Pinging DATABASEURL [192.168.0.175] with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 192.168.0.175:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
###Note:
I created this website just an hour ago, the database is working fine from phpmyadmin panel where i managed to edit a few entries too, but it isn’t working when I try to connect to it from my locally hosted php website (All credentials entered by me for server name etc are valid, the error is because of connection)
MySQL remote access is not supported on free hosting, and that’s why you can’t access the database from your local machine. If you want it please consider upgrading to Premium Hosting as it offers many features.
Think there’s some problem with the script.
Download xamp server on your computer and try to test it using correct php script. The error you are seeing in your command prompt is right here also. Just there is some problem with script.
Go through it once again.
@Ergastolator1 already sent a reply above, that MySQL remote access is not supported here meaning it won’t work when you want to connect to an InfinityFree MySQL database outside InfinityFree. Whether the script is correct or not, you can’t access the MySQL database remotely.
Thankyou so much everyone for the quick replies! I believe the problem is only because I was trying to access it outside of my hosting account. The website hasn’t gone live yet but I wanted to test it out once before it did. Thankyou again.
OTT: From your experiences, how long can it take for my website to go live if it has a really small size (3 webpages with no media)