Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8549969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:50:39+00:00 2026-06-11T13:50:39+00:00

I have MySQL database version 5.1.36, that came with WAMP installation. I used it

  • 0

I have MySQL database version 5.1.36, that came with WAMP installation. I used it for development purposes on Windows XP SP3, and it has some data in it, which is cyrillic, and the collation for all of those tables/columns is set to utf8_general_ci.

Now the time has come to move this database to pseudo-production environment, which is on Debian Lenny. Version of MySQL here is 5.0.51a.

I tried the following:

  1. I exported the databse with data from phpmyadmin on Windows and saved the .sql file to be in UTF8.
  2. Then, I transferred it through WinSCP (both with default and binary transfer settings) to Linux machine.
  3. I created the database through command line: mysqladmin -u root -p create nbs
  4. Finally, I tried to create tables and fill the data:

    mysql -u root -p --default-character-set=utf8 nbs < NBS_utf8_1.sql

However, this is where I’m getting the error, like:

ERROR 1064 (42000) at line 1: 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 ‘
CREATE TABLE IF NOT EXISTS `history_members` (
`id`
int(11) NOT NULL AUTO_’ at line 1

Something is messed up with encoding, I suppose… but don’t know how and where. I think I read in the similar question on SO that binary mode for text transfer will only change the line breaks CRLF to LF (don’t know if this is correct…). What am I missing here?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T13:50:40+00:00Added an answer on June 11, 2026 at 1:50 pm

    For this particular case, the problem was solved with the following modifications:

    1) I set initial collation while creating the target database to utf8_general_ci,
    2) I transferred the file with text mode through WinSCP,
    3) I added SET NAMES 'utf8' COLLATE 'utf8_general_ci'; to the top of sql dump.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a MySQL database table called Participant that looks something like this: (idParticipant)
I have a web application that relies on a MySQL database, for which I
So, my problem is this. I have a legacy MySQL database that I'm building
Wondering if it is possible to have a version control of a MySQL database.
I have a mysql database (version 5.5), and I am trying to add a
I am working with a MySQL database version 5.0.41 (and PHP 5.2.6, though that
I have two MySQL database tables that are meant to hold data for eshop
I have a large mySQL database that I backup each night via a cron
I have taken a dump from my mysql database on my own server (version
I have a MySQL database table with two columns that interest me. Individually they

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.