WordPress.org

Ready to get started?Download WordPress

Forums

How to import a database and assign it to a blog with wp-config.php (2 posts)

  1. stavgeor
    Member
    Posted 4 years ago #

    How to import a database and assign it to a blog with wp-config.php?
    Here is the problem :

    1.I had already 2 blogs with many posts on wordpress
    2.I recently switched the hosting provider to bluehost
    3.I downloaded my databases prior to switching hosting provider.
    4.I cannot upload, set and configure the old databases to the blogs so as to have their old content.
    Overall do not know how to transfer from the start my blog to another provider.Now my blogs with many posts appear to be new with no posts!

    Many thanks for the detailed steps and help!

  2. MichaelH
    Member
    Posted 4 years ago #

    Might be as simple as setting the correct value for $table_prefix in your wp-config.php. For example, using phpMyAdmin look at your database and look for the posts table. If the posts table is called wp123_posts then in your wp-config.php set $table_prefix = 'wp123_'

    Related:
    Moving WordPress

Topic Closed

This topic has been closed to new replies.

About this Topic