Mysql Redump 할때의 고질병....관련.
작성자 정보
- 안재성 작성
- 작성일
컨텐츠 정보
- 2,693 조회
- 1 댓글
- 0 추천
- 목록
본문
먼저 아래는 Mysql 설치시 정보입니다.
======================================================
[1] Configure 정보
./configure
--prefix=/usr/local/mysql
--localstatedir=/usr/local/mysql/data
--disable-shared
--enable-assembler
--with-thread-safe-client
--with-mysqld-user="mysql"
--with-client-ldflags=-all-static
--with-mysqld-ldflags=-all-static
--with-readline
--without-debug
--without-docs
--without-bench
--with-charset=euckr
[1] my.cnf 정보
cp /usr/local/mysql/share/mysql/my-huge.cnf /etc/my.cnf
vi /etc/my.cnf
... ...
[mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-locking
skip-name-resolve # <---(필수)--- 원격으로접속해야할때 꼭 추가
key_buffer = 384M
max_allowed_packet = 1M
table_cache = 512
sort_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 8M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size = 32M
# Try number of CPU's*2 for thread_concurrency
thread_concurrency = 8
### 추가된 옵션들 ###
default-character-set = euckr
language = /usr/local/mysql/share/mysql/korean
max_connections = 512
default-storage-engine = INNODB
default-table-type = INNODB
connect_timeout = 1800
#old_passwords = 1
#log_slow_queries = /home/dianahee/slow_query.log
....
#log-bin=mysql-bin
....
======================================================
이후 다른 서버에있는 디비데이타를 로컬에서 바로 덤프하여아래와같이
redump하였으나 에러가 뜹니다.
원인을 대략 짐작가시는 분이라도 빠른 제보 부탁드립니다.
## test 1
[root@web1 clubzin]# mysql -u root -p clubzin < clubzin.sql
Enter password:
ERROR 1067 (42000) at line 855: 'use_font'의 유효하지 못한 디폴트 값을 사용하셨습니다.
CREATE TABLE `_club_bbs_control` (
... ...
`use_font` varchar(20) NOT NULL default '굴림체',
... ...
위의 굴림체 부분이 문제입니다.
음... 그냥 널로하고 redump후 다시 넣어줘도 되지만
왜 이런현상이 일어나는 지 궁금하네요.
관련자료
-
이전
-
다음
배준태님의 댓글
- 배준태
- 작성일
...지금 디비를 밀어넣는 서버의 lang은 무엇인가요