• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

How do I move mySQL-database from one domain to other domain ...

M

manjunja

Guest
Hi folks,

I've got a mySQL database in my plesk 7.5.3 "under" domain i.e. "adomain.de" and want to move this database to domain i.e. "bdomain.de"

Reason: If I do a backup from domain "bdomain.de", the database which ist sortet under domain "adomain.de" isn't part of the backup, but should belong to it.

How can I change this?
Any ideas?

thx in @vance
manjunja
 
What you could do is the following:

1) make a dump with mysqldump from the database and adjust the DB name in the dump.
2) Create database and user on the new domain
3) inject the dump with the new username like mysql < dump
 
Any other way of doing this?

Is there any other way of doing this?
(ex. Editing psa tables?)

I have searched the forum with no luck.
Any help would be appreciated.
 
I found another post in these forums that led me to the answer. http://forum.parallels.com/showthread.php?t=53671

Basically you open up WebAdmin and select the "spa" database, go into the file "data_bases" and change the dom_id of the database to a different one. MySQL doesn't know or care anything about this and everything works fine.
 
Back
Top