Username
epiz_26351628
Error Message
mysqli::__construct(): (HY000/2002): Connection timed out in
Other Information
help
epiz_26351628
mysqli::__construct(): (HY000/2002): Connection timed out in
help
Databases only accept connections from your website, not any others.
first i uploaded all the file and then i created database for my website, i edit my config.php using epizy filemanager only and i got this error but my php project is running properly on localhost???
What details did you use to connect to the database? (Don’t show your password)
$servername = "sql109.epiz.com";
$username = "epiz_26351628";
$password = "***************";
$database = "epiz_26351628_********";
$conn = new mysqli($servername, $username, $password, $database);
Are you accessing your database from the same website in which it was created for?
yes I am using it on sub domain but I also tested in main domain
i got this error fixed i am using servername = “.epizy.com" in my php website but when i checked my wordpress’s config.php file so the servername = ".byetcluster.com” so i used “sql109.byetcluster.com” instead of “sql109.epiz.com”
and my error resolved
sql109.byetcluster.com is not supposed to be used… it’s supposed to be sql109.epizy.com
Both are same.
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.