Last active
December 17, 2019 07:03
-
-
Save manuke/702390654d7de0a4ee5b5ee961c4cc8d to your computer and use it in GitHub Desktop.
mysql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# デフォルトは大文字小文字の区別をしない | |
http://daybydaypg.com/2017/08/12/post-227/ | |
# delete後の不要領域回収 | |
https://aws.amazon.com/jp/premiumsupport/knowledge-center/rds-mysql-storage-optimization/ | |
# tablechecksum | |
pt-table-checksum h=192.168.10.9,u=percona,p='',P=3306 --no-check-binlog-format --no-check-replication-filter --databases ch,twilio | |
# slaveをmasterから発見する | |
pt-slave-find --host localhost | |
# table sync | |
pt-table-sync --verbose --dry-run --replicate d.t h=192.168.10.9,u=percona,p='',P=3306,D=d,t=table | |
# disk io realtime check | |
pt-diskstats | |
# system summary | |
pt-summary | |
# check optimize repair | |
mysqlcheck -c|-o|-r --all-databases | |
# tuner | |
mysqltuner.pl --user root |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment