• I just switched hosts, and I need to edit the database information. Can I do this from a raw file? I have all the tables, etc in a new database because I backed them up, but how do I tell WP to look to the new database?

Viewing 5 replies - 1 through 5 (of 5 total)
  • I’m not sure, but I think the easiest thing for you to do is to install WordPress entirely from scratch on your new host and then simply importing the data from your previous configuration over using phpMyAdmin.
    This may not work, or their may be a better way… but I think that’s how I would generally approach it.
    Good luck.

    Just edit the wp-config.php files as necessary to reflect any changes to the name of the database and/or database user.

    Thread Starter shanest

    (@shanest)

    I almost have it working. However, I need to change the site URL to get links working properly. The problem is that I changed it in the database, but it still links to my old website. How do I get it to link to the new URL?

    Did you change the ‘home’ field as well? Look a little deeper in your wp_options table.

    Moderator James Huff

    (@macmanx)

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Editing DB Info’ is closed to new replies.