update database hostname for you application


If your web application brock or go down due to database connection. you might need to update the new database configuration file of your website.

As MyLightHost migrated to clustering-based remote database service, your website will be stable and run faster than before. But you may need an additional configuration.

To update the database please follow this instruction (Wordpress Websites)


 Login to the cPanel. please follow the instruction here

Open file manager to change the primary domain of your account.


After login into file manager double click on public_html directory

Public_html directory

Now you can see all of your website files. here look for your database configuration files (eg: for Wordpress it is wp-config.php)

If you get any popup dialog box click edit there.

Edit File cpanel


Now you have found a code editor page. here change your database hostname. effected by the announcement

For Wordpress website, look for this line

define('DB_HOST', 'localhost');

remove this line and add the following

define('DB_HOST', 'db02.noc24online.net');



  • mysql database, database, mysql, migration, database connection error
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Accessing your Control Panel (cPanel/WHM)

  Accessing your Control Panel (cPanel/WHM)Posted by MyLightHost.com Inc. on 2013-09-03 12:21...

How can I check the disk space usage of my account in detail?

You can check your disk space usage of your directories in detail via cPanel > Disk Space Usage.

How do I access my website statistics?

Your website stats can be found by logging into your control panel (cPanel > Web/FTP Stats) ....

How do I block an IP address using cPanel?

If there is an IP address you want to block from your website, you can do so inside Cpanel. Here...

How do I create a backup of my website files?

Login to your cPanel Control Panel and choose "Backup" from the system menu. Click the link which...