사이트 내 전체검색
PHP
[mysql] mysql 테이블 복구와 부담율 제거
로빈아빠
https://cmd.kr/php/403 URL이 복사되었습니다.

본문

해당 테이블 위치 이동 후 index 복구
[root@db90 AspMall]#myisamchk -r -q zetyx_division_freeboard

전체 디비 오류 체크
[root@db90 mysql_data]#mysqlcheck -uroot -p55 -A

디비명 오류 체크
[root@db90 mysql_data]#mysqlcheck -uroot -p55 -B 디비명

디비명 오류 복구
[root@db90 mysql_data]#mysqlcheck -uroot -p33 --auto-repair -B month_close

테이블명 오류 복구
[root@db90 mysql_data]#mysqlcheck -uroot -ppdmaker --auto-repair month_close --tables stat_amt_sale

테이블 최적화
[root@db90 AspMall]# mysql -uroot -p55
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 78481 to server version: 4.0.20-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> use bigsky
Database changed

mysql> OPTIMIZE TABLE song_hit_month_200405;

댓글목록

등록된 댓글이 없습니다.

PHP
871 (11/18P)

Search

Copyright © Cmd 명령어 3.21.162.242