Is localhost the right DB_HOST?

Hello I can’t reach my website i done everything correct except the DB_HOST which i’m not sure of, i searched everywhere in your website but can’t find the DB_HOST!
doesn’t the website have a cpanel? the only page i get from opening my website is : This site can’t be reached

artymall.000webhostapp.com refused to connect.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED

any help would be much appreciated, thank you.

@yart Yes db_host is “localhost”.

I see your website loads with port no 81, don’t use this port no specifically.
Check with your .htaccess and remove port no 81…and then try again.

Thank you for your answer, how can i remove port 81?
my .htaccess file contains nothing but

“# BEGIN WordPress # END WordPress”

Hit general settings on your website, reset and start again to see if your site loads.

I believe i’ll lose all my data, I’ll try that as the last solution
how can i change port 81?

and even when i try to check the user by SELECT user, host FROM mysql.user
"#1142 - SELECT command denied to user id1411423_yart’@‘2a02:4780:bad:c0de::13’ for table ‘user’"
and i copied the authentication informations correctly !!

@yart You website is now working fine.

But the website is in wordpress directory, you can move your files to “public_html” to load your website when you press your free domain name.

Yes Thank you
By the way the problem was the Db_Host: localhost i changed it to my website domain in wp_options table

1 Like