database.sarang.net
UserID
Passwd
Database
DBMS
ㆍMySQL
PostgreSQL
Firebird
Oracle
Informix
Sybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
MySQL Q&A 29770 게시물 읽기
No. 29770
mysql error 1064
작성자
BlueSpy(rainbowcar)
작성일
2010-08-25 18:51ⓒ
2010-08-25 22:27ⓜ
조회수
7,748

mysql 5.0.64에서 아래 순서로 덤프를 복구하여 latin1을 utf8로 변환하는 중에,

1064 error가 나옵니다.

 

1. mysqldump -uroot -p --default-character-set=latin1 --extended-insert=FALSE dmupgrade > dump_utf8.sql

2. emeditor로 dump_utf8.sql을 utf8로 바꾸고, "latin1"을 "utf8로 ".로 치환.

3. mysql -uroot -p --default-character-set=utf8 dmupgrade-utf8 < dump_utf8.sql

4. The error message.:
Error

SQL query:

INSERT INTO `g4_visit` VALUES (272252,'121.182.xxx.xxx','2009-08-14','00:17:09','http://www.google.co.kr/search?肄ㅤㅅㅒㅂㅤㅅㅏㅎ?ㅻㅤㄱㅣㅄ??','Mo[...]

MySQL said: Documentation
#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 'Mozilla/4.0 (compatible' at line 1

 

Mozilla/4.0 (compatible <- 이 부분을 처리하는 방법이 없을까요?

가능하면 원형을 살려서 복구하고 싶은데요.

 

[Top]
No.
제목
작성자
작성일
조회
29773mydqldump 시 LOCK TABLES 문제로 dump되지않는이유?? [3]
조근호
2010-08-29
12569
29772C API를 통한 Transaction 비정상 경험하신분.. [3]
박재성
2010-08-26
9162
29771. [1]
변재언
2010-08-26
7880
29770mysql error 1064
BlueSpy
2010-08-25
7748
29769특정 필드에서 특정 문자를 제거 하는 방법이 있을까요?? [2]
mysql 초보
2010-08-25
7561
29768이런 경우 인덱스를 어떻게 잡아야 할까요? [1]
윤현호
2010-08-24
6740
29767length() 결과로 0 과 null 의 차이점 [1]
greenluck
2010-08-24
6756
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.022초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다