Error establishing database connection after moving URLs
-
Hi there!
My blog was located at pamperland.net, however the domain expired and I no longer wish to renew it. I would like to move my blog to theailona.com/blog instead, however I do not have access to my blog’s settings (as the domain has expired).
With the Codex (https://codex.wordpress.org/Moving_WordPress) I went to the
wp_optionstable via PHPMyAdmin and changedsiteurlto the new URL (theailona.com/blog), then copied all of my blog’s files to theailona.com/blog.The WordPress Address and Blog Address are stored as siteurl and home (the option_name field).
Strangely, there is only
siteurllisted in thewp_optionstable. So I assume the error happened because I haven’t changed the Blog Address field.The error message when I go to theailona.com/blog:
Error establishing a database connectionThe error message when I go to theailona.com/blog/wp-admin:
linkI should also say that the file folder for pamperland.net is located at
public_html/pamperland.netunder theailona.com (the same server).Solution:
I changed the DB_USER’s password and it works.
The topic ‘Error establishing database connection after moving URLs’ is closed to new replies.