• Resolved billcollins

    (@billcollins)


    I have changed servers and am attempting to import the database. I keep getting the following error message. Can someone PLEASE HELP. I have been at this for hours.

    #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 ‘CHARACTER SET latin1’ at line 1

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter billcollins

    (@billcollins)

    Sorry,
    The character set is:
    CHARACTER SET utf8 COLLATE utf8_unicode_ci;

    I do not know the syntax. Help please;

    Thread Starter billcollins

    (@billcollins)

    I tried to put the code between the backticks, example
    CHARACTER SET utf8 COLLATE utf8_unicode_ci;
    USE db220506006;

    Is this correct?
    I deeply appreciate your support!
    bill

    Thread Starter billcollins

    (@billcollins)

    I hope this helps someone. I spent hours trying to figure this out.

    First, the new database already existed. After I downloaded a copy of the database from the old hosting service, I changed the name of the database to correspond with the new database, in an editor, removed the lines,CREATE DATABASE db220506006b DEFAULT CHARACTER SET latin1 COLLATE latin1_german2_ci; USE db220506006b; and then imported the file into the new database via php manager. All the tables were correct. I also edited the wp-config file to correspond to the new database. I was also using custom permalinks….they needed to be updated. And then the site ran smoothly. Always make a backupcopy of the old database and the wp-config file. This worked for me. I am not an expert, I only trying to say what worked for me after hours of trying to work this out. If you find a better post, please use it. Have a great day.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘changing servers and importing database HELP!!!’ is closed to new replies.