1. Please take a little time for this simple survey! Thank you for participating!
    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

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

    rvdmeer Guest

    0
     
    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

    0
     
    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

    0
     
    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.
     
Loading...