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

  1. stavgeor
    Posted 6 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
    Posted 6 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_'

    Moving WordPress

Topic Closed

This topic has been closed to new replies.

About this Topic