1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

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

Discussion in 'Plesk for Linux - 8.x and Older' started by manjunja, Oct 19, 2005.

  1. manjunja

    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
  2. rvdmeer

    rvdmeer Guest

    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
  3. arisk2

    arisk2 Guest

    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.
  4. Tim Nicholson XS

    Tim Nicholson XS Guest

    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.