Migrating to a new server - More questions

Progress Report: I made some progress in migrating sites to a new server.

  • I backed up one of my virtual hosts with:

    sudo virtualmin backup-domain --domain mydomain.org --all-features --newformat --dest /root/mydomain/ --mkdir
    
  • I then copied that backup to the new server with this command. Note: see this post for a hint on ssh access

    scp -r /root/mydomain root@new-host.com:/root
    
  • I then restored the virtual host on new-host.com using:

    virtualmin restore-domain --source /root/mydomain/ --domain mydomain.org --all-features
    
  • This recreated the /home/mydomain directory, put all the files into that directory, and created the MySQL database tables. But now when I connect to mydomain.org, I see an error message saying “Error establishing a database connection” I suspect that this is because the password for that database isn’t correct.

What’s the best way to fix this? Thanks.