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. 메시지를 대신에 혼자이 남아 있도록 반환한다.