MySQL Tip: How To Check, Repair & Optimize All Tables in All Databases mysql 팁 :를 확인하는 방법, 복구 및 최적화하기의 모든 데이터베이스의 모든 테이블에
Here is a simple command to auto repair, check and optimize all the tables in all databases running on a MySQL server : 여기는 간단한 명령을 자동으로 복구, 점검 및 최적화에서 실행되는 모든 데이터베이스의 모든 테이블을 반환한다 :
mysqlcheck -u root -p --auto-repair --check --optimize --all-databases mysqlcheck - u 루트 - p - 자동차 - 수리 - 수표 - 최적화 - 모든 - 데이터베이스를
mysqlcheck is available in MySQL 3.23.38 and later. 3.23.38 이상에서 지원하는 mysql mysqlcheck합니다.
mysqlcheck uses the SQL statements CHECK TABLE, REPAIR TABLE, ANALYZE TABLE, and OPTIMIZE TABLE in a convenient way for the user. mysqlcheck sql 문을 사용하여 테이블을 점검, 수리 테이블, 분석하는 테이블을, 그리고 사용자에 해당하는 편리한 방법을 최적화 테이블을합니다. It determines which statements to use for the operation you want to perform, and then sends the statements to the server to be executed. 이 결정에 사용하는 문장을 수행하려는 작업을 누른 다음 명령문을 서버로 전송합니다으로 실행합니다. The exact operations are determined by the underlying storage engine used. 정확한 작업은 기본적인 스토리지 엔진을 사용할에 의해 결정됩니다.
You must execute it on running database. 그것을 실행하는 데이터베이스를 실행해야합니다. It is recommended that you kill other incoming queries (like from your website) before running this which makes it a lot faster. 다른 수신하는 것이 좋습니다 검색어를 죽이고 (예 : 귀하의 웹사이트에서) 이것을 실행하기 전에이 훨씬 빨리 져요. I simply stop my httpd server before running it. 나는 그것을 실행하기 전에 간단하게 서버 중지 내 웹서버합니다. You may want to use a 를 사용하여 할 수있습니다 Site Unavailable 사이트를 사용할 수없는 message instead so that the MySQL server is left alone. 메시지를 대신에 혼자이 남아 있도록 반환한다.
Filed under 밑에 Company 회사 , Database 데이터베이스를 , Enterprise Software 엔터 프라이즈 소프트웨어를 , Headline News 헤드 라인 뉴스 , How To 하는 방법을 , MySQL mysql , RDBMS rdbms , Tech Note 기술 참고 사항 , Web 웹 | |
| |
RSS 2.0 rss 2.0 | |
Trackback 트랙백 this Article | 이 문서 |
Email this Article 전자 우편이 문서
You may also like to read 같은를 읽을 수있습니다 |




May 3rd, 2008 at 4:10 pm 2008년 5월 3일에서 오후 4시 10분
Hi, 안녕,
great command! 위대한 명령을! But what about this: 하지만 당신은 어떤이 :
Don’t forget to FLUSH TABLES after execution of any of the following - REPAIR TABLE, TRUNCATE TABLE, OPTIMIZE TABLE, or ANALYZE TABLE on tables that are mapped into MERGE table. 플러시 테이블을 잊지 말고 다음과 같은 중 하나를 실행 후 - 수리 테이블, 잘라내기 테이블을 최적화하는 테이블을, 또는 테이블을 분석하는 테이블을 매핑하는 테이블을 병합합니다.
And shouldn´t we also run a ’sort-index’ ? 그리고 우리도를 실행해서는 안 '정렬 - 색인'?