Knowledgebase
Webinova Online Customer Support > Webinova Help Desk > Knowledgebase

Search help:


Can I change the name of a MySQL database?

Solution

The name of a MySQL database consists of a prefix, which is your cPanel username, followed by a "_" sign and the actual database name.

For example, if your cPanel username is user and you create a database  db, the database name will be user_db.

Thus, if you wish to change the whole name of a database, two changes should be made – the cPanel username and the database name.

In order for a cPanel username to be changed, we have to terminate the account and re-create it anew with the new username. This means you will lose all the data stored on the hosting account, like files, email addresses, MySQL databases, forwarders, etc.

This is why it is not recommended to change your username. However, you can easily change the database name suffix by simply creating a new database with the new name and importing the old database in it.

In other words, if you wish to rename the database user_db to user_joom, you should first create the new database, then import the old database in it and finally add the user to the new database.

 
Was this article helpful? yes / no
Article details
Article ID: 201
Category: cPanel MySQL Databases
Date added: 2012-12-07 13:10:39
Views: 17
Rating (Votes): Article rated 3.0/5.0 (2)

 
« Go back

 
Powered by Help Desk Software HESK - brought to you by Help Desk Software SysAid