Importing WP database

Discussion in 'Databases' started by coolsleek, Mar 10, 2009.

  1. #1
    I want to import an old site database to the new site. Both site have the same host.

    I made a new database and added a user setting to it. In my wp-config php file, i change the db_name to the new database and the db_user to the added user.

    I don't know what I am doing wrong. When I enter my new site URL in the adress bar, it goes back to the old site (it is behaving as if I am doing a redirect)

    What is wrong?
     
    coolsleek, Mar 10, 2009 IP
  2. Boulder

    Boulder Well-Known Member

    Messages:
    806
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    118
    #2
    Sounds like you need to change the url entries in the database?

    There are two main entries in the options table that has the url.

    Login phpmyadmin and open options table and change those two main URL fields to have the new URL.

    Or it can be changed by opening the raw .sql file too before importing.


    Boulder
     
    Boulder, Mar 10, 2009 IP
  3. peterCx

    peterCx Peon

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    export from ole site

    and import new site.

    Are you correct user and password?
     
    peterCx, Mar 10, 2009 IP
  4. HJITechnologiesLLC

    HJITechnologiesLLC Well-Known Member

    Messages:
    466
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    145
    #4
    I have had the same problem before. This is what I did to fix it.

    1. Go to Old or new (Which ever you are trying to make now) phpmyadmin database.

    2. Do a Overall search for the website's URL or the name itself from the Search Query.

    3. Edit all of the URL's to the new ones (From the old ones or w/e your trying to do)

    4. Save and you should see a change.
     
    HJITechnologiesLLC, Mar 10, 2009 IP
  5. Clipovich

    Clipovich Peon

    Messages:
    77
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I am transferring a WP blog also. It is transferred but how do I open wp-config to change the database, user name and password?

    Chad
     
    Clipovich, Mar 10, 2009 IP
  6. qazu

    qazu Well-Known Member

    Messages:
    1,834
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    165
    #6
    @Clipovich

    Try opening it in notepad or another text editor
     
    qazu, Mar 11, 2009 IP
  7. Clipovich

    Clipovich Peon

    Messages:
    77
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Got it. Thanks. That worked. I have never used php and when I tried clicking on it, my Windows Picture It program was trying to open it. I'm such a newb. Thanks for the help.
     
    Clipovich, Mar 11, 2009 IP