Changing the database password will likely require some changes to code in order to keep your site running. If you are unsure how to do this yourself, consult a web developer.
If your website uses a MySQL database to power it's content management system (CMS), or other functionality, you may find that on occasion it's necessary to change the password that is used for the website to connect to it.
A database connection will require the hostname, a database name, a username, and a password in order to successfully connect. Once the password has been change, you will likely need to edit at least one file in your websites file system in order to update the password, so you should identify where this file is before you make any changes. In most cases the file will have the name 'config', 'configuration', or 'database' in the name.
Some of the main configuration files are:
WordPress: ~/public_html/wp-config.php
Joomla: ~/public_html/configuration.php
You may want to change your database password because:
To change your MySQL database password:
Now that the password has been changed, you will need to edit your websites code. If you use a Content Management System (CMS) such as WordPress or Joomla, this should be a simple change in the websites configuration file. If your website is bespoke and does not use an off-the-shelf CMS, you should consult your web developer.
Article ID: 1883
Created On: Wed, Sep 28, 2022 at 6:53 PM
Last Updated On: Thu, Sep 29, 2022 at 3:33 PM
Online URL: https://www.heartinternet.uk/support/article/how-to-change-your-mysql-database-password.html