
Originally Posted by
dizzyfish
Hi everyone, Rob and Schoolboy, Checking back in... While dealing with the folks at GoDaddy I was told I would not be able to change the database name... Perhaps I misunderstood, perhaps they did not understand my question?
In any case I do have the following info:
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.
So, now I have looked further I can see it could be done... Just the same I have to wonder how many Zen Cart owners who are not developers would want to attempt to fix all the lost info?
Perhaps I still don't get it? Is there a way I can change the name of my mysql database AND keep all my data from my old store with the add-on's and so forth? Please tell us where the information is so I may do so as I have several Zen Carts to move and upgrade. It would be great to be able to just creat a new database user name/database name and import the old data, then do my patching.
Thank you in advance for any links you have available that describes this...