Error establishing database connection after move
-
Hello,
I have developed a site under domain.com/site. I now want to move it to it’s own cpanel account, which is site.com/~NL
I have copied all files over to site.com/~NL. I also exported and imported the db.
For some reason, it keeps saying “error connecting to db”. I have tried everything possible to fix this, and can’t. I even deleted account ~NL from WHM, and recreated it. I know the db connection works fine. The db username/password are correct. I even tried importing the db via command line (mysql command) and it imports fine, but won’t connect when trying to acccess the site via the new site.com/~NL url. Is it possible the site won’t work until I update the DNS of the domain name? That shouldn’t matter…
Any help is greatly appreciated.
The topic ‘Error establishing database connection after move’ is closed to new replies.