• Resolved TonyWilliams

    (@tonywilliams)


    I am moving my site to another domain name and host account.

    I have followed the instructions here:
    http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_to_a_New_Server

    However I now cannot get into the site on either domain name. I have tried to import the database through the 1and1 (who the hosts for both sites) but when I go to the phpMyadmin screen and try to import the database from the current site to the new one I get this message:
    Error

    SQL query:


    — Database: db551362633

    — ——————————————————–


    — Table structure for table wp_commentmeta

    DROP TABLE IF EXISTS wp_commentmeta;

    MySQL said: Documentation
    #1046 – No database selected

    I have no idea what this means can anyone help a novice here?
    Thanks
    Tony

Viewing 5 replies - 1 through 5 (of 5 total)
  • You need to first create the database and then do the import from within it. In other words make sure you have clicked on the database you want to import the data into.

    Thread Starter TonyWilliams

    (@tonywilliams)

    I’m not sure I understand your comment:

    You need to first create the database and then do the import from within it.

    I had created a database on the 1and1 server for the new site. When I import a database from another site does it retain the original name or will it the files go into the new database? If the former what do I need to do to link the imported database to the new site?
    I’ve read all the WordPress Help but as a novice find it difficult to follow 🙁
    Thanks
    Tony

    You are importing “Tables” into the database so the database name does not need to be the same. So to be clear you are clicking on the new database name in the left margin of phpMyadmin and then clicking on the import button at the top of the screen and not clicking on the import button from the Home screen in phpMyadmin.

    The former will show at the top of the page:

    Importing into the database “your database name”

    If your clicking Import from the home screen it shows:

    Importing into the current server

    Thread Starter TonyWilliams

    (@tonywilliams)

    Thanks that’s really helpful.
    Tony

    Thread Starter TonyWilliams

    (@tonywilliams)

    Just to say I managed to get everything to work. I went through the whole process three or four times and eventually got it to work. Not quite sure what I did differently but at least I can now access the site.
    Tony

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Trying to move site’ is closed to new replies.