Thread: Database Copy

Results 1 to 2 of 2
  1. #1
    Join Date
    May 2006
    Posts
    51
    Plugin Contributions
    0

    Default Database Copy

    I have a backup of my database from PHP5/MySQL 5 using phpmyadmin that I want to restore to my test server that is PHP4/MySQL4 using phpmyadmin. I keep getting the following error the error:

    Code:
    #1064 - You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=latin1 AUTO_INCREMENT=2' at line 12
    1. What is the "CHARSET=latin1"

    2. Can I just remove all the "DEFAULT CHARSET=latin1" references and not affect anything?

    3. What is a good way to deal with this?

    Thanks.

  2. #2
    Join Date
    Aug 2005
    Posts
    26,068
    Plugin Contributions
    9

    Default Re: Database Copy

    When you created the backup in phpmyadmin, were these the settings that you used?

    Code:
    Export =SQL
    SQL Options:
    Structure: these selected
                   Add DROP TABLE
                   Add IF NOT EXISTS
                   Add AUTO_INCREMENT value
                   Enclose table and field names with backquotes
    
    Data: these selected
              Complete inserts
               Extended inserts
               Use hexadecimal for binary fields
               Export type: Insert
    Code:
    On the Import side:
    
    Character set of the file: = latin1
    The DB is created in the Swedish-Latin collation.
    Zen-Venom Get Bitten
    Get Your Business Found

 

 

Similar Threads

  1. Update Data With SQLScripts Created In Excel
    By JuxiZoza in forum Setting Up Categories, Products, Attributes
    Replies: 74
    Last Post: 23 Mar 2006, 05:16 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •