How to move only databases from another server to Plesk and be able to manage them using Plesk GUI ?

Created:

2016-12-12 03:39:25 UTC

Modified:

2017-08-08 13:29:36 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to move only databases from another server to Plesk and be able to manage them using Plesk GUI ?

Applicable to:

  • Plesk 12.5 for Windows

Question

How to move only databases from another server to Plesk and be able to manage them using Plesk GUI ?

Answer

To be able to manage databases via Plesk, databases should be created via Plesk first:

  1. Create a file that contains database name, user name and password, for example C:\\db.txt :

    database1 user1 password1
    database2 user2 password2
    ....
    databasexxx userxxx password xxx
  2. Use below script(run it in cmd) to create databases for subscription example.com:

    for /f "tokens=1,2,3" %a in ('type C:\\db.txt') do "%plesk_cli%\\database.exe" --create %a -domain example.com -type mysql -add_user %b -passwd %c -default -server localhost:3306

    Check documentation about possible options for database.exe utility

  3. Restore databases from the source server.

Have more questions? Submit a request
Please sign in to leave a comment.