Your country & currency

Make yourself at home. Choose your preferred shopping currency.

Your selected country opens its KickHost website. Your shopping currency is saved. Visit country website .

Guide

How to Rename a Database in cPanel

Rename a database in cPanel and update your website settings. Easy steps for KickHost hosting customers in Canada.

Share

Sometimes you need to rename a database, for example after a site move or to make names easier to recognise. cPanel can rename it for you, but your website must be told about the new name or it will stop connecting.

1. Log in to your cPanel account.

2. In the Databases section, click on MySQL Databases.
Mysql databases - How to Rename a Database in cPanel

3. Under Current Databases, you can see a list of all your databases. Locate the Database and then click on Rename.
Rename db - How to Rename a Database in cPanel

4. Change the database name and click on Proceed.
Change dbname - How to Rename a Database in cPanel

Update your website after renaming

Change the database name in your site’s configuration file. For WordPress, edit DB_NAME in wp-config.php. Until you do, the site will show a database connection error.

Check users and privileges

After renaming, open MySQL Databases and confirm your database user still appears next to the database with the right privileges. Add it again if not.

Take a backup first

Download a database backup before renaming so you have a safe copy if something goes wrong.

Frequently asked questions

Will renaming change my data? No. The tables and content stay the same. Only the database name changes.

Why does my site show a connection error after renaming? The configuration file still points to the old name. Update it to the new name.

Does the account prefix stay? Yes. cPanel keeps your username prefix at the front of the name.

Related guides

Need cPanel hosting in Canada? See KickHost hosting plans or contact our team.

Found this useful? Share it.

Using KickHost in Canada?

KickHost supports Canadian customers with prices in Canadian dollars, .ca and .com domain registration and a choice of data centre locations. KickHost does not list a Canadian data centre, so ask the team if your data must stay in Canada. If you get stuck, open a support ticket from your client area.

Related: Canadian web hosting · .ca domains · contact the team

Need a hand with this?

Our team can help you choose the right domain, hosting or server and set it up properly.

Talk to our team See hosting plans