Can't Move To New Host - SQL Error #1064

Discussion in 'MySQL' started by ScottHughes, Jun 5, 2007.

  1. #1
    My old host is using:
    MySQL 5.0.24a-log
    phpMyAdmin 2.4.0

    My new host is using:
    4.1.21-standard-log
    phpMyAdmin - 2.9.0.2

    When I export the database on my old host to a file and then try to import it to my new host, I get the following error:

    I assume the error is caused by the fact that I am going from a newer version of SQL to an older version. Is there any work-around for this?

    I simply want to move my databases from my old host to my new host. Does anyone know how I can do this? Or, at least, does anyone know where I can find out how to do it?
     
    ScottHughes, Jun 5, 2007 IP
  2. bentong

    bentong Banned

    Messages:
    3,543
    Likes Received:
    257
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can ask for a mysql upgrade with your new hosting.
     
    bentong, Jun 5, 2007 IP
  3. ScottHughes

    ScottHughes Peon

    Messages:
    755
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Since I posted before, they did upgrade my hosting. They put me on a new server with SQL 5.

    I still get the error, so now I don't have a clue what's causing it.

    I've tried multiple databases, but none will import without causing that error.
     
    ScottHughes, Jun 5, 2007 IP
  4. sri

    sri Active Member

    Messages:
    917
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    70
    #4
    When you say multiple databases, you meant those of different scripts? like one for WordPress, another for Joomla etc.

    Not sure if this makes a difference: Don't save one entire DB as a .sql file and import it. Go inside a DB, select all the tables, save as .sql, create a new DB w/ the same name in your new host, then import the .sql inside it.

    If still no dice and if no one has a better ideas and you want to, I can try if you give me access.
     
    sri, Jun 5, 2007 IP
  5. ScottHughes

    ScottHughes Peon

    Messages:
    755
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #5
    That's aready what I'm doing, but thanks.

    If you wouldn't mind, just PM me.
     
    ScottHughes, Jun 6, 2007 IP
  6. Katy

    Katy Moderator Staff

    Messages:
    3,490
    Likes Received:
    513
    Best Answers:
    7
    Trophy Points:
    355
    #6
    Are you sure you have the same username and password as on your old host?
     
    Katy, Jun 6, 2007 IP
  7. ScottHughes

    ScottHughes Peon

    Messages:
    755
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #7
    My new host figured out the problem. The solution:

    It worked!

    Thanks everybody for your help and suggestions!

    Added on edit: My new host is hostican. They have been great so far. Their customer support is very quick and effective.
     
    ScottHughes, Jun 6, 2007 IP
  8. everypcneed

    everypcneed Peon

    Messages:
    238
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Thanks for posting the fix. Adding this one to my list in case I come across it.
     
    everypcneed, Jun 7, 2007 IP