Made an update to .php file in File Manger in cPanel, but the site does not change?

Avatar
  • updated
  • Answered

Today my mysql connection suddenly broke. Take a look at [...]. I attempted to fix this by creating a new user to access the database the file looks at, yet the error message still lists the previous username as the one being denied access. How do I force the web page to use the update .php file credentials?

Pinned replies
Avatar
anonymous
  • Answer
  • Answered

Hi! For your privacy and security, I removed the address you listed, but only after visiting the site as you requested. 

After creating the new MySQL user, be sure to update the appropriate configuration file for your site or sites. For example, if you have a WordPress site, please be sure to update the wp-config.php file and put the new database user credentials in the file. This should allow your site to access the database. I hope that helps!

Avatar
anonymous
  • Answer
  • Answered

Hi! For your privacy and security, I removed the address you listed, but only after visiting the site as you requested. 

After creating the new MySQL user, be sure to update the appropriate configuration file for your site or sites. For example, if you have a WordPress site, please be sure to update the wp-config.php file and put the new database user credentials in the file. This should allow your site to access the database. I hope that helps!