ERROR: ASCII '\0' appeared in the statement, but this is not allowed unless option --binary-mode is enabled and mysql is run in non-interactive mode. Set --binary-mode to 1 if ASCII '\0' is expected.
이번에 서버 옮겨오면서 서로 인코딩이 달라 그런지
XE 게시판 등에서 한글이 모두 깨지더군요. @_@;
이 방법은 캐릭터셋을 지정해서 디비를 백업/복원하는 방법입니다.
백업하기
mysqldump -u 아이디 -p 디비명 --default-character-set utf8 > backup.sql;
Enter password: 비밀번호 입력
복원하기
xynex@only4:~$ mysql -u 아이디 -p 디비명 --default-character-set utf8 < backup.sql;
Enter password: 비밀번호 입력
XE 사용하시는 분들은 일반적으로 utf8로 인코딩 지정해주시면 되고요.
참고로 backup.sql은 백업파일명입니다.
제목 | 날짜 | ||
---|---|---|---|
95 | [MySQL] Mysql Join 해부(Left, Right, Outer, Inner Join) | 154 | 2018/01/03 |
94 | [리눅스서버] Ubuntu 16.04 | root 계정으로 로그인하기, root 계정으로 ssh 접속하기 | 91 | 2018/03/21 |
93 | [리눅스서버] Ubuntu php7.0-fpm 세팅 중 오류 | 76 | 2018/03/25 |
92 | [리눅스서버] mysql strict mode 끄기 | 888 | 2018/03/29 |
91 | nginx https redirect www to non-www | 231 | 2018/04/04 |
90 | [Nginx] nginx-redirects-http-to-https-and-www-to-non-www | 79 | 2018/04/21 |
89 | [Nginx] https가 아닐 경우 https로 리다이렉트하는 방법 | 170 | 2018/04/25 |
88 | [Nginx] [Nginx] Rewriterule 서브 도메인 입력시 하위 디렉토리로 이동하기 | 501 | 2018/05/15 |
87 | [MySQL] MySQL 사용자 테이블 생성 및 연결하기 | 93 | 2018/06/24 |
86 | [기타] G Suite - | 0 | 2018/07/26 |
85 | [리눅스서버] ./configure : /bin/sh^M : bad interpreter [duplicate] | 145 | 2018/07/29 |
84 | [리눅스서버] [쉘스크립트] 새로운 데이터베이스 테이블 생성 및 유저 연결 쉘스크립트 | 568 | 2018/07/29 |