innodb db file 분산하기
- ▷ 테이블 스페이스// 0. 서버 중단# /etc/init.d/mysql.server stop
// 1. mysql 덤프
# mysqldump –all-databases -p > mysql.dump
// 2. 테이블 스페이스 초기화
# rm -rf ibdata1
# rm -rf ib_logfile*
- // 3. 테이블 스페이스 분할 환경
-
# vi /etc/my.cnf
——————————————————
innodb_data_home_dir=/usr/mysql/mysql_data
innodb_data_file_path=ibdata1:2048M;ibdata2:2048M;ibdata3:2048M;ibdata4:2048M;ibdata5:128M:autoextend
——————————————————
// 4. 서버 재기동
# /etc/init.d/mysql.server start
// 5. 데이타 복구
#cd /home/
# mysql -u root < mysql.dump
For my thesis, I consulted a lot of information, read your article made me feel a lot, benefited me a lot from it, thank you for your help. Thanks!
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.