Database connection establishing error
PHP files and MYSQL in wordpress : An example to understand things easily
Fixing database connection error
- Check to see if the "wp-config.php" file exists in the root of your wordpress installation.
- If it does not exist, you can simply upload "wp-config.php" file that you can find inside the wordpress installation package and follow up with the instructions. If you do not have wordpress installation files, you can download it by clicking here.
- If "wp-config.php" exists, open it up using a notepad and find the following lines of code and configure it as described in the following image: