Website URL
https://instantrepair.tech
Error Message
Error Establishing a Database Connection
Other Information
my website is not accessible it shows Error establishing a database connection on both front end and back end I Have checked the details of database in wpconfig.php it’s all okay Maybe The database is down can you tell me how to fix
Turn on display errors under php configuration in the control panel.
Can you tell me how can I do it
I have tried Creating php.ini file and paste this code in the root directory but this doesn’t help me also it keeps showing Error establishing a database connection
ini_set(‘display_errors’, 1);
ini_set(‘display_startup_errors’, 1);
error_reporting(E_ALL);
You cannot use the php.ini file on free hosting.
And I already told you how to turn it on:
I turned it on
But it didn’t make any changes the error keeps on coming
It
Its turned on but it’s still showing Error establishing a database connection on front and back end
I am using these two accounts on my free hosting the when I am trying to access the database of the above account Under My SQL databases the First Database is showing Error too many redirects and the second one database is working fine
This error I am getting when trying to access My SQL database
https://instantrepair.tech
(please specify the URL of the site on which you are experiencing the problem)
Error Message
Other Information
I recently updated my Infinityfree Password and Updated on my wpconfig.php also
define( ‘My Password’ );
But I am still getting error as
define() expects at least 2 parameters, 1 given in wpconfig.php
https://instantrepair.tech
(please specify the URL of the site on which you are experiencing the problem)
####Error Message
Access Denied for user using password Yes
Other Information
I am Getting Error of cannot establish a database connection I updated the wp debug to true from false in wpconfig.php not it’s showing the reason of the error of Database Connection but I Can’t Understand What to do now I tried disabling all plugins and themes but that also didn’t work I turned on php config also but only these errors are coming on front and back end please tell me how to fix these
I am getting this error message of Access Denied for yes (Password Yes) please can you tell me how to solve this
Thankyou This article has helped to solve my problem