2014-09-10 1 views
0

우리는 여전히 MySQL 5.0을 사용하고 있으며 시스템에 Percona라는 도구가 있다는 것을 배웠습니다. 우리는 "장기 실행 쿼리"가있는 상황에 처해있을 때 alter 문이 DB에서 실행되는 데 걸리는 시간을 결정하는 데 도움이되는 명령을 받았으며 데이터베이스가 올바르게 시작하는 것을 방해합니다. 내 질문은 아래의 오류가 발생하는 것처럼 MySQL 5.0에서 Percona 명령을 실행할 수 있습니까?pt-online-schema-change 문제 MySQL 5.0의 Percona 명령

Usage: pt-online-schema-change [OPTIONS] DSN 

Errors in command-line arguments: 
    * Specify only one DSN on the command line 
    * The DSN must specify a database (D) and a table (t) 

pt-online-schema-change alters a table's structure without blocking reads or 
writes. Specify the database and table in the DSN. Do not use this tool before 
reading its documentation and checking your backups carefully. For more 
details, please use the --help option, or try 'perldoc 
/usr/bin/pt-online-schema-change' for complete documentation. 

어떤 도움도/방향을 주시면 감사하겠습니다 : 여기

pt-online-schema-change --set-vars innodb_lock_wait_ti 
meout=50 --host=localhost --alter-foreign-keys-method=auto user=tfuser --ask 
-pass --alter " ADD INDEX indAppPostCodeAnywhere (Forename, Surname, DOB, Applic 
ationDate)" D=DBName,t=Application --dry-run 

오류입니다 : 여기

는 명령입니다. 감사.

답변

0

분명히 구문 문제가있었습니다.

pt-online-schema-change D=DBName,t=Application,h=localhost,u=tfuser --alter="ADD INDEX indAppPostCodeAnywhere (Forename, Surname, DOB, ApplicationDate)" --alter-foreign-keys-method="auto" --ask-pass --dry-run --set-vars="innodb_lock_wait_timeout=50" 

감사

: 여기에 단지 경우 다른 사람의 수정 명령은 같은 문제로 실행됩니다