-1

I am trying to import data from MySQL 5.1.30 to Mysql 5.5.8.

However I get this error message:

ERROR 1064 (42000) at line 2209: 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 ''ग' at line 163

I think because of the Persian language it requires UTF-8 encoding. How do I import with UTF-8 enabled?

INSERT INTO `language_data` (`id`, `lang_variable`, `English`, `Spanish`, `Hindi`, `Chinese`, `Farsi`) VALUES
(1343, '#my_challenges_button_find_challenges', 'Find challenges', 'Buscar desafíos', 'चà¥<81>नौतियों का पता लगाà¤&lt;8f>ं', '', ''),
4

2 回答 2

1

It was a wrong literal value. The literal quote symbol (') must be repeated in string values -

INSERT INTO table VALUES(..., 'some text ''ग')

You need to find and fix this error in your script.

于 2012-12-05T20:27:50.593 回答
1

INSERT INTO language_data (id, lang_variable, English, Spanish, Hindi, Chinese, Farsi) VALUES (1343, '#my_challenges_button_find_challenges', 'Find challenges', 'Buscar desafíos', 'चà¥<81>à¤', 'चà¥<81>à¤', 'चà¥<81>à¤');

于 2012-12-05T20:39:08.697 回答