1. Knowledge Base
  2. >
  3. Results
  4. >
  5. Article

WordPress: How to Update Database Connection Strings

  1. Log into your Control Panel.
  2. Go to MySQL Database.
  3. Click on your database (left panel).
  4. Use the right panel to locate your database information:
    • Database Name: Shown to the right of 'Managing Database'.
    • Database Username: Shown in the first column under 'Username'.
    • Database Password: You cannot see the existing password, but you can change it by clicking Change Password.
    • Database Hostname: Shown to the right of 'Server Name'.
    User-added image

How to Update Database Connection Strings

Important: Make sure that you preserve spaces and other coding characters when modifying your connection strings.

  1. Log in to your Control Panel.
  2. Go to File Manager.
  3. Locate your website's wp-config.php file.
  4. Click Edit.
  5. Locate the following lines of code: // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('DB_NAME', 'database_name');

    /** MySQL database username */
    define('DB_USER', 'database_username');

    /** MySQL database password */
    define('DB_PASSWORD', 'DatabasePassword');

    /** MySQL hostname */
    define('DB_HOST', 'database.hostname');
  6. Change the highlighted values above to match your database settings.
  7. Click Save.

Want to learn more about WordPress

WordPress: Tutorial Videos To help you easily grasp the basics of creating a WordPress website, has created several free tutorial videos. These videos were designed to be followed in order, but you are welcome to view whichever one best suites your needs.

You can always check out WordPress.org and browse their codex or online help forums.