阿里巴巴为什么不用 ZooKeeper 做服务发现?
为什么大公司一定要使用微服务?
2020年 9 大程序员接私活的网站
因用了Insert into select语句,码农被开除了!
在看|星标|留言, 真爱
回复“666”,获取一份专属大礼包
[root@localhost ~]#wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/mysqltuner.pl
[root@localhost ~]# ./mysqltuner.pl --socket /var/lib/mysql/mysql.sock
>> MySQLTuner1.7.4- MajorHayden<major@mhtx.net>
>> Bug reports, feature requests, and downloads at http://mysqltuner.com/
>> Runwith'--help'for additional options and output filtering
[--] Skipped version check forMySQLTuner script
Please enter your MySQL administrative login: root
Please enter your MySQL administrative password: [OK] Currently running supported MySQL version 5.7.23
[OK] Operating on 64-bit architecture
[root@localhost ~]#wget https://launchpad.net/mysql-tuning-primer/trunk/1.6-r1/+download/tuning-primer.sh
[root@localhost ~]# [root@localhost dba]# ./tuning-primer.sh
-- MYSQL PERFORMANCE TUNING PRIMER --
- By: MatthewMontgomery-
[root@localhost ~]#wget https://www.percona.com/downloads/percona-toolkit/3.0.13/binary/redhat/7/x86_64/percona-toolkit-3.0.13-re85ce15-el7-x86_64-bundle.tar
[root@localhost ~]#yum install percona-toolkit-3.0.13-1.el7.x86_64.rpm
[root@localhost ~]# pt-variable-advisor localhost --socket /var/lib/mysql/mysql.sock
[root@localhost ~]# pt-query-digest /var/lib/mysql/slowtest-slow.log
pt-query-digest /var/lib/mysql/slowtest-slow.log > slow_report.log
pt-query-digest --since=12h/var/lib/mysql/slowtest-slow.log > slow_report2.log
pt-query-digest /var/lib/mysql/slowtest-slow.log --since '2017-01-07 09:30:00'--until'2017-01-07 10:00:00'> > slow_report3.log
pt-query-digest --filter '$event->{fingerprint} =~ m/^select/i'/var/lib/mysql/slowtest-slow.log> slow_report4.log
pt-query-digest --filter '($event->{user} || "") =~ m/^root/i'/var/lib/mysql/slowtest-slow.log> slow_report5.log
pt-query-digest --filter '(($event->{Full_scan} || "") eq "yes") ||(($event->{Full_join} || "") eq "yes")'/var/lib/mysql/slowtest-slow.log> slow_report6.log
福利:
在这里,我为大家准备了一份2020年最新最全的面试题及答案,这套电子书涵盖了诸多后端,客户端,前端技术栈的面试题和答案,相信可以帮助大家在最短的时间内复习的大多数面试题,从而拿到自己心仪的offer。
福利时间:
扫码加我微信和进群和大佬们零距离