Moving my wordpress sites from one ip adress to another, I get " Error establishing a database connection" when I try to call up a site.
So I used the following commands:
v-backup-user username
scp /backup/username.2020.01.01-00-00.tar [email protected]:/backup/
v-restore-user different-username username.2020.01.01-00-00.tar
I use ubuntu 24.
When I try to connect to the databases php 8.4 of the sites, I fail to get through.
I then updated the password through hestiacp for a site, providing the password set in the site on the first server, and then I can connect to the database through myphp admin interface. So it seems that the passwords did not get transferred in the restore process.
But the error persists.
Any suggestions as to what I can do from here?
Is there another place where something needs to be tuned up ?
And the usernames are changed - from site1 to site2 - but this works like a charm I find.
Very impressed with this programming work.