- FTP connect to your hosting account using your account FTP details, Or you can login to cPanel and access the File Manager.
- Open the wp-config.php file (located in the webroot folder, in cPanel it would be the public_html folder)
- Make sure your database name, username, password and hostname are correct (you can find instructions below depending on your hosting)
- Find the database string below in the wp-config.php file and replace the relevant credentials with the correct information.
- Re-upload the edited wp-config.php file
Cloud Hosting : Database credentials
To find your database name, hostname, username and password:- Log into the Console
- Click the domain you want to manage
- Click Database and you will see your database under the Current Databases heading
- Click View under Credentials
- In the pop up you’ll find log in information and your hostname
cPanel Hosting : Database credentials
- Log into the Console
- Click the domain you want to manage
- Click cPanel Hosting
- Under hosting settings, click Log into cPanel interface
- Under the Databases section click MySQL Databases
- On this page you’ll find the database name
- Scroll down to Current Users and your will find the database user which will connect to the database
- In the Current Users section you can reset your database user password