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

move database

Discussion in 'Plesk for Windows - 8.x and Older' started by AbsolutelyFreeW, Feb 23, 2006.

  1. AbsolutelyFreeW

    AbsolutelyFreeW Guest

    0
     
    I tried with:

    database.exe -u database_name -domain new_domain.com

    but that didnt work.

    Is there any way?
     
  2. AbsolutelyFreeW

    AbsolutelyFreeW Guest

    0
     
    I did it through psa database
     
  3. vekna

    vekna Guest

    0
     
    Which errors did you get?
     
  4. AbsolutelyFreeW

    AbsolutelyFreeW Guest

    0
     
    no errors, but it didnt do anyting
     
  5. Gris@

    Gris@ Guest

    0
     
    it is possible to do it through psa database. You should modificate data_bases table. This table has column named dom_id. This column links to id column in domains database. That is why the only thing that you should do is to update db_id field like in this query:
    update data_bases set dom_id=(select id from domains where name='domain.com') where name='databasename';
     
  6. Gris@

    Gris@ Guest

    0
     
    domains - it is table , not database
    :)
     
  7. AbsolutelyFreeW

    AbsolutelyFreeW Guest

    0
     
    thx gris, as said before, I've made the change through the psa already ;)
     
Loading...