Compare commits
656 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
70750a4855 | ||
![]() |
1b9c8e588e | ||
![]() |
00ae2c9ddb | ||
![]() |
66fdb9339d | ||
![]() |
e519313752 | ||
![]() |
14b295ec92 | ||
![]() |
197e4729b0 | ||
![]() |
13ec5072fb | ||
![]() |
07fd5df5d1 | ||
![]() |
763ba10872 | ||
![]() |
fd31cc84ce | ||
![]() |
d45dd77f6d | ||
![]() |
56b7415198 | ||
![]() |
aba69e1d4e | ||
![]() |
4bb70413be | ||
![]() |
1c1c4638af | ||
![]() |
13d2783348 | ||
![]() |
828f25d828 | ||
![]() |
099d38b11d | ||
![]() |
adda63da26 | ||
![]() |
198e0d5a0d | ||
![]() |
a76ec6a051 | ||
![]() |
0dc9caaf95 | ||
![]() |
1843cf1f4f | ||
![]() |
b2c11b2d81 | ||
![]() |
def7f81455 | ||
![]() |
1286af5fd5 | ||
![]() |
4a7d0e07a9 | ||
![]() |
936843fb1b | ||
![]() |
ac43eee969 | ||
![]() |
0111b1118d | ||
![]() |
f86232b95c | ||
![]() |
6ce7155199 | ||
![]() |
2fb1ba00d5 | ||
![]() |
2542954305 | ||
![]() |
9437fb1aab | ||
![]() |
aa8de299c4 | ||
![]() |
86ccfb2fcc | ||
![]() |
5d66f40e06 | ||
![]() |
f0848b8489 | ||
![]() |
a14d551a3f | ||
![]() |
cb3fd87f09 | ||
![]() |
c29168ccaf | ||
![]() |
8899f10756 | ||
![]() |
e03ba82187 | ||
![]() |
5c48a8a0a9 | ||
![]() |
876c374bef | ||
![]() |
df93ddc45c | ||
![]() |
2f2b7680bd | ||
![]() |
216d8f9d19 | ||
![]() |
da90482071 | ||
![]() |
5c38853a05 | ||
![]() |
ffd7aca201 | ||
![]() |
30e61d917b | ||
![]() |
c2140d79f7 | ||
![]() |
d15426bfef | ||
![]() |
235cc4e0f9 | ||
![]() |
9e243c4d63 | ||
![]() |
54df506b36 | ||
![]() |
62eefc8dfa | ||
![]() |
34dcfd05c9 | ||
![]() |
cbb2534577 | ||
![]() |
d9ccab2bf7 | ||
![]() |
6cc7ff252a | ||
![]() |
cf4e6b47b7 | ||
![]() |
c1d00b994a | ||
![]() |
2c6bdbb0db | ||
![]() |
4d82fbaa56 | ||
![]() |
ca10ec7411 | ||
![]() |
7ffd825668 | ||
![]() |
4fdd801392 | ||
![]() |
dd2ed72642 | ||
![]() |
30d1d9ecc6 | ||
![]() |
b3a776576e | ||
![]() |
27525ca922 | ||
![]() |
65b1c138a5 | ||
![]() |
56d16e168e | ||
![]() |
b608da0fb1 | ||
![]() |
3fd633b507 | ||
![]() |
77699b72ae | ||
![]() |
c20bcbf8f0 | ||
![]() |
01a1e53364 | ||
![]() |
b10cdb7441 | ||
![]() |
e8ecc98585 | ||
![]() |
da6dabcac0 | ||
![]() |
27d48d8506 | ||
![]() |
da9c37b2e5 | ||
![]() |
34e642efd2 | ||
![]() |
9da06cbd2a | ||
![]() |
71166417e6 | ||
![]() |
8de551ced9 | ||
![]() |
da0a35dd40 | ||
![]() |
572f34252b | ||
![]() |
df5957204e | ||
![]() |
8cf314e9cc | ||
![]() |
cf2e17797e | ||
![]() |
9d44e4cc34 | ||
![]() |
46af11a70b | ||
![]() |
835a181232 | ||
![]() |
8efc22d491 | ||
![]() |
290b32d3f2 | ||
![]() |
491de6e6d7 | ||
![]() |
76c215683d | ||
![]() |
7ab60ba85b | ||
![]() |
e2146a733b | ||
![]() |
40babb5369 | ||
![]() |
2ecc662f69 | ||
![]() |
e9cae0428d | ||
![]() |
e7c19632d3 | ||
![]() |
960dd9e157 | ||
![]() |
a99b23e222 | ||
![]() |
5859adae59 | ||
![]() |
5f3775aef3 | ||
![]() |
d0ec7ea254 | ||
![]() |
d46c05da77 | ||
![]() |
fb4ea3fb1d | ||
![]() |
ee64f17144 | ||
![]() |
981d6f9935 | ||
![]() |
b44447ed1b | ||
![]() |
98fc9f5a89 | ||
![]() |
ea681a386d | ||
![]() |
d4e50347ba | ||
![]() |
a866de9506 | ||
![]() |
8c92cac191 | ||
![]() |
ed4adb0fdb | ||
![]() |
12cf4d3ecb | ||
![]() |
4a1a7f40c9 | ||
![]() |
4e32805535 | ||
![]() |
5bc816e88d | ||
![]() |
dc5c2abcf9 | ||
![]() |
5cb0ef3c57 | ||
![]() |
3c8b3742e7 | ||
![]() |
fa6fdfb5cf | ||
![]() |
15bd21ac54 | ||
![]() |
3159e130a6 | ||
![]() |
54fe8c9c61 | ||
![]() |
7f51ddcf07 | ||
![]() |
c5e5c81266 | ||
![]() |
c1e9b4b837 | ||
![]() |
ddcc05f0bc | ||
![]() |
9218c88865 | ||
![]() |
b4f6a30679 | ||
![]() |
d7e762bcbd | ||
![]() |
6a89742cc0 | ||
![]() |
db21ef429b | ||
![]() |
3692e02be2 | ||
![]() |
17eed4ff30 | ||
![]() |
badfadb7ff | ||
![]() |
f585e6ad2d | ||
![]() |
2440f1fc2d | ||
![]() |
9bf2c0429b | ||
![]() |
b008591ce2 | ||
![]() |
fc320f0f3d | ||
![]() |
856040bff8 | ||
![]() |
46f0aead18 | ||
![]() |
2910dc11a2 | ||
![]() |
5fac4cd07d | ||
![]() |
2185340548 | ||
![]() |
af3dda7e42 | ||
![]() |
5a0530219e | ||
![]() |
7bbc6db3e7 | ||
![]() |
183aac3f4a | ||
![]() |
e0e2168f06 | ||
![]() |
44fac4eff8 | ||
![]() |
5926c59ce6 | ||
![]() |
b8045b2465 | ||
![]() |
22379c8a6f | ||
![]() |
7d57863115 | ||
![]() |
179a0f72e4 | ||
![]() |
d832cf5e7d | ||
![]() |
7b73cf5aac | ||
![]() |
8ac37c1df2 | ||
![]() |
6cd1c4197d | ||
![]() |
84511a3c76 | ||
![]() |
855b1b523a | ||
![]() |
43a245e8f3 | ||
![]() |
26676127ce | ||
![]() |
57d1ea88e0 | ||
![]() |
e3d95e2b5f | ||
![]() |
5ccb6f9cd6 | ||
![]() |
aa8e2bd98d | ||
![]() |
c1a0fb2f76 | ||
![]() |
e6ee330f5e | ||
![]() |
8ab7f3e559 | ||
![]() |
d7c44dbf28 | ||
![]() |
e1da1aad95 | ||
![]() |
e7e045bb17 | ||
![]() |
76e8180a5d | ||
![]() |
89619dc379 | ||
![]() |
e4f0f0d210 | ||
![]() |
aade05cb67 | ||
![]() |
e5c1ec6c03 | ||
![]() |
9a0fb10d66 | ||
![]() |
7cbcb91ef6 | ||
![]() |
a7567efcc5 | ||
![]() |
e86778b43b | ||
![]() |
f826f8c22d | ||
![]() |
0157e24398 | ||
![]() |
f17f27179b | ||
![]() |
90cf069aa6 | ||
![]() |
4ac4d1263b | ||
![]() |
c378782015 | ||
![]() |
5cae98532a | ||
![]() |
0f643c2c6c | ||
![]() |
ee2d8d51d4 | ||
![]() |
7b2f7e3762 | ||
![]() |
343ec024bb | ||
![]() |
6132f9f664 | ||
![]() |
d7edfad633 | ||
![]() |
9085ceb000 | ||
![]() |
13fe693004 | ||
![]() |
78f21466d2 | ||
![]() |
cf5d983ecc | ||
![]() |
08d92f3d68 | ||
![]() |
8aacb0f85d | ||
![]() |
840c5785a0 | ||
![]() |
ebbddb7576 | ||
![]() |
0a39c0c96e | ||
![]() |
b7a92a28e0 | ||
![]() |
b22cd12bf4 | ||
![]() |
38041d3ecd | ||
![]() |
2c2d59d036 | ||
![]() |
cb4784e8c7 | ||
![]() |
fa3caacb5a | ||
![]() |
f27541682d | ||
![]() |
dabc9d9819 | ||
![]() |
4e4ae77e4a | ||
![]() |
c94906580f | ||
![]() |
bb10bce371 | ||
![]() |
ed0de692a8 | ||
![]() |
7a4e7ffa18 | ||
![]() |
5dd0dec278 | ||
![]() |
842ae6e582 | ||
![]() |
5ac9844030 | ||
![]() |
7b385a9518 | ||
![]() |
bd9d921ae8 | ||
![]() |
f9debbf20d | ||
![]() |
c825e7d66b | ||
![]() |
b218cdf05f | ||
![]() |
de3903a43f | ||
![]() |
96fbedff72 | ||
![]() |
3bb8f5a789 | ||
![]() |
e810886f44 | ||
![]() |
fbbdb42390 | ||
![]() |
287c4d1e69 | ||
![]() |
8f2e1b36f5 | ||
![]() |
29ad424da2 | ||
![]() |
8e6b61ed10 | ||
![]() |
2590ef6307 | ||
![]() |
af67fe8100 | ||
![]() |
3164f3a727 | ||
![]() |
ac387f4665 | ||
![]() |
5560381f7d | ||
![]() |
1ccba5e556 | ||
![]() |
16237f7778 | ||
![]() |
cfeec1ec61 | ||
![]() |
a3e4969538 | ||
![]() |
ca04d7bce1 | ||
![]() |
0c07da0bff | ||
![]() |
396940f87c | ||
![]() |
976936f4c3 | ||
![]() |
b229cb0fe7 | ||
![]() |
dad4dbf56a | ||
![]() |
a71e017d04 | ||
![]() |
a6b6d072f2 | ||
![]() |
9dafbb86f6 | ||
![]() |
bc3cf200e9 | ||
![]() |
ceadb90279 | ||
![]() |
19099d91b6 | ||
![]() |
5250031d97 | ||
![]() |
4226d747ab | ||
![]() |
38b5338505 | ||
![]() |
7a5e86dd04 | ||
![]() |
3b9dde81ad | ||
![]() |
b2480d3556 | ||
![]() |
20606bd48c | ||
![]() |
157e5241bf | ||
![]() |
00c6055cc0 | ||
![]() |
084b6b49bd | ||
![]() |
f02e7ae09c | ||
![]() |
ed2356a30c | ||
![]() |
b99028fb88 | ||
![]() |
9a19915515 | ||
![]() |
0705fddcfe | ||
![]() |
b19894440c | ||
![]() |
df27acab0b | ||
![]() |
8b8228565c | ||
![]() |
71d1bb49da | ||
![]() |
326f9fe1cc | ||
![]() |
8482d78a81 | ||
![]() |
813eaed1ba | ||
![]() |
703442ecb0 | ||
![]() |
fa6f478f94 | ||
![]() |
8b302e8187 | ||
![]() |
964b80943d | ||
![]() |
5fb453f821 | ||
![]() |
ada29e773f | ||
![]() |
b33c70338c | ||
![]() |
0a80fc9d1b | ||
![]() |
8f1abe22b3 | ||
![]() |
6be008de4d | ||
![]() |
a40b26907d | ||
![]() |
c5cf3603fd | ||
![]() |
68f2516c2d | ||
![]() |
9d72aeddab | ||
![]() |
7fad4236ba | ||
![]() |
3412750798 | ||
![]() |
701057d7ad | ||
![]() |
3a68d793fd | ||
![]() |
ac76b78f39 | ||
![]() |
0ea8e42ab7 | ||
![]() |
58a01544b1 | ||
![]() |
30982454d9 | ||
![]() |
26bbb196a8 | ||
![]() |
b870af9dd3 | ||
![]() |
c09af858d5 | ||
![]() |
a41b68be4f | ||
![]() |
c0ebc46b4c | ||
![]() |
54c963d6b9 | ||
![]() |
a04e862f02 | ||
![]() |
53c9368743 | ||
![]() |
6718e73837 | ||
![]() |
10fa5506ba | ||
![]() |
83a76ff330 | ||
![]() |
df688927cd | ||
![]() |
a638c6b3ca | ||
![]() |
dacf168fd9 | ||
![]() |
0aaa63253c | ||
![]() |
e0963bac64 | ||
![]() |
c2593d3c12 | ||
![]() |
57358fc7c9 | ||
![]() |
51ff81c764 | ||
![]() |
43fdb3680e | ||
![]() |
95bb587ee1 | ||
![]() |
02a022c064 | ||
![]() |
fa2cfe9a5f | ||
![]() |
9adb7d6efd | ||
![]() |
5cb9f0a466 | ||
![]() |
71d2fa7913 | ||
![]() |
009790af3f | ||
![]() |
007db7e964 | ||
![]() |
04f50a0b93 | ||
![]() |
b99cd357c1 | ||
![]() |
2223372468 | ||
![]() |
fe300aae1b | ||
![]() |
06680834c2 | ||
![]() |
856ef452f3 | ||
![]() |
f9084ac565 | ||
![]() |
d69b960d04 | ||
![]() |
d6bbf7cc99 | ||
![]() |
a0c8807871 | ||
![]() |
3b3fa00b76 | ||
![]() |
afac793d7e | ||
![]() |
aac467ec6e | ||
![]() |
b29eb05b2b | ||
![]() |
881479eca8 | ||
![]() |
76709da875 | ||
![]() |
b33ad673e4 | ||
![]() |
a787631287 | ||
![]() |
72353f4d32 | ||
![]() |
ea29f3e0d4 | ||
![]() |
c35552a652 | ||
![]() |
4c4bc01ff7 | ||
![]() |
0113f77f27 | ||
![]() |
806295ccd9 | ||
![]() |
a5fbb70cac | ||
![]() |
15b07f5c0c | ||
![]() |
17130198d9 | ||
![]() |
6cd8c808aa | ||
![]() |
5537b67a39 | ||
![]() |
fe573ac578 | ||
![]() |
e014012217 | ||
![]() |
8aa8ffaa5b | ||
![]() |
31a85bea0b | ||
![]() |
72414b5130 | ||
![]() |
3c80ceb5bf | ||
![]() |
0ad61e6174 | ||
![]() |
75ffa2d97d | ||
![]() |
dd085736da | ||
![]() |
18c6ed5bcf | ||
![]() |
97f571bbbb | ||
![]() |
92e2dbb12b | ||
![]() |
4b66af8cdd | ||
![]() |
6284e95f18 | ||
![]() |
ecb9570f29 | ||
![]() |
c1188b8bd5 | ||
![]() |
390977624e | ||
![]() |
57b4f69680 | ||
![]() |
3f81c4c620 | ||
![]() |
b345c03a7f | ||
![]() |
1951e60b98 | ||
![]() |
34e31137b6 | ||
![]() |
ec165a6e2d | ||
![]() |
7addc40cfe | ||
![]() |
25abba9bc1 | ||
![]() |
de2b2be92c | ||
![]() |
a8d3b6a5f5 | ||
![]() |
5331b3e591 | ||
![]() |
efb1e1bad2 | ||
![]() |
fdd42e7685 | ||
![]() |
2259dfc3b2 | ||
![]() |
335e12aa9a | ||
![]() |
ce6e8cdf8d | ||
![]() |
8cd40947ea | ||
![]() |
07cfdafaa7 | ||
![]() |
10abb0c3d0 | ||
![]() |
3bc7b6a34b | ||
![]() |
464e632834 | ||
![]() |
c1cace575e | ||
![]() |
ba21312e00 | ||
![]() |
4a4629f862 | ||
![]() |
34bab469c4 | ||
![]() |
898315d6e0 | ||
![]() |
5ea10e9c24 | ||
![]() |
461c8fb60e | ||
![]() |
3edaab3b57 | ||
![]() |
d2dcd7281d | ||
![]() |
cf568a8f43 | ||
![]() |
4057662cbe | ||
![]() |
9fdd43787c | ||
![]() |
606c09e3bc | ||
![]() |
77b313bf92 | ||
![]() |
e1524048cf | ||
![]() |
8347472947 | ||
![]() |
4709d758b7 | ||
![]() |
ec66406996 | ||
![]() |
411fb8b2b6 | ||
![]() |
35ba851cbb | ||
![]() |
b425acd963 | ||
![]() |
95e40e0cc3 | ||
![]() |
8013980635 | ||
![]() |
ecd2da6be4 | ||
![]() |
03636f3649 | ||
![]() |
2e186cbcd4 | ||
![]() |
b3bdb236dd | ||
![]() |
0fdcda815e | ||
![]() |
39c9fe7e21 | ||
![]() |
c7c9b64804 | ||
![]() |
f2085d7524 | ||
![]() |
7851426ecc | ||
![]() |
5007163bae | ||
![]() |
dd9914be88 | ||
![]() |
cc4fa414d2 | ||
![]() |
e7f444c969 | ||
![]() |
de383c4a52 | ||
![]() |
478642308f | ||
![]() |
7ca7474067 | ||
![]() |
f80a45d374 | ||
![]() |
09424eedfb | ||
![]() |
096ed0f09f | ||
![]() |
191b16c21b | ||
![]() |
f18570b96f | ||
![]() |
cc6a1c89e2 | ||
![]() |
c5cc4096a2 | ||
![]() |
e437c1a3fc | ||
![]() |
0e278becf3 | ||
![]() |
7db9bbeeb7 | ||
![]() |
7bf727669b | ||
![]() |
cd30f9c852 | ||
![]() |
2b44229a8e | ||
![]() |
55cdf92f8b | ||
![]() |
3ce4c603b4 | ||
![]() |
f17ee46f01 | ||
![]() |
747675b1ba | ||
![]() |
5f53e00a65 | ||
![]() |
d4d680e887 | ||
![]() |
8430b6e466 | ||
![]() |
b164a9b054 | ||
![]() |
49218c8c4c | ||
![]() |
1f3abe896b | ||
![]() |
93a8c0849e | ||
![]() |
8ed76b05ba | ||
![]() |
926c9a92ca | ||
![]() |
c1661f326e | ||
![]() |
12a96cb08e | ||
![]() |
1c68fe1b1a | ||
![]() |
7d53af73cc | ||
![]() |
73af0190d3 | ||
![]() |
cb74b1947e | ||
![]() |
6090b0fa9c | ||
![]() |
a146c81b7c | ||
![]() |
0d897f8c5b | ||
![]() |
6b6d85ef28 | ||
![]() |
1333ea9395 | ||
![]() |
c0251a1488 | ||
![]() |
85d7d6b6a8 | ||
![]() |
d04c1c46dc | ||
![]() |
24ccf47d6e | ||
![]() |
5b96d08004 | ||
![]() |
1bdb4b1aea | ||
![]() |
1ecb2e9854 | ||
![]() |
87aff130f3 | ||
![]() |
467e999a17 | ||
![]() |
0aa4995bed | ||
![]() |
911b1294fa | ||
![]() |
3225a954fc | ||
![]() |
645e034efd | ||
![]() |
1e9920b545 | ||
![]() |
d37a1f7c79 | ||
![]() |
6584233c72 | ||
![]() |
7aa57fa770 | ||
![]() |
7a2a0f1b13 | ||
![]() |
78d8f3ed85 | ||
![]() |
dde94aa343 | ||
![]() |
656a7e51ed | ||
![]() |
8f479b06f6 | ||
![]() |
2079639e6b | ||
![]() |
213211aecc | ||
![]() |
52d3fc4d7c | ||
![]() |
47cf0669fc | ||
![]() |
c9345a1380 | ||
![]() |
5aa880afbc | ||
![]() |
85d5015a1d | ||
![]() |
76c9343fb9 | ||
![]() |
71b2f0b144 | ||
![]() |
447652d325 | ||
![]() |
ac34523609 | ||
![]() |
68e5902169 | ||
![]() |
948c09ab86 | ||
![]() |
a8fc0c2639 | ||
![]() |
b0cfbd802b | ||
![]() |
5a399f6006 | ||
![]() |
bf8d1e69c1 | ||
![]() |
ef66fb274c | ||
![]() |
2e0f388119 | ||
![]() |
c1ca0234cf | ||
![]() |
4e0a8b396f | ||
![]() |
e29b76fca1 | ||
![]() |
0be85cbb9f | ||
![]() |
2a63ffdcd3 | ||
![]() |
05925cf12e | ||
![]() |
f93020f6a5 | ||
![]() |
bfeccad220 | ||
![]() |
b85a443dce | ||
![]() |
5901f5191b | ||
![]() |
5c307d1813 | ||
![]() |
950df575cd | ||
![]() |
938b434e41 | ||
![]() |
c3da0b013c | ||
![]() |
625d2cf668 | ||
![]() |
be5809e838 | ||
![]() |
8cda55aa60 | ||
![]() |
47ebbbca75 | ||
![]() |
22789d1c7f | ||
![]() |
1f879d110b | ||
![]() |
374ef59417 | ||
![]() |
49c2f6e930 | ||
![]() |
72952b5873 | ||
![]() |
7a94bd5388 | ||
![]() |
59ce37b3a1 | ||
![]() |
2c8f5e81cf | ||
![]() |
85dc9551c5 | ||
![]() |
299944627e | ||
![]() |
285ba51330 | ||
![]() |
d9e00040c8 | ||
![]() |
f2c8ca86b2 | ||
![]() |
8fb9195c4f | ||
![]() |
3a7bf40c83 | ||
![]() |
9d1d19c97d | ||
![]() |
083dc22c60 | ||
![]() |
fa8deec762 | ||
![]() |
2f45f349c9 | ||
![]() |
3ac95cd046 | ||
![]() |
99e5c83779 | ||
![]() |
9a9ff555ee | ||
![]() |
374b34430e | ||
![]() |
ea6a33264b | ||
![]() |
df56ff11ad | ||
![]() |
ce23262b27 | ||
![]() |
b1a1829362 | ||
![]() |
aac1ab2b4d | ||
![]() |
643e5e4e98 | ||
![]() |
b8effe6410 | ||
![]() |
6f966dee45 | ||
![]() |
1bb30f508e | ||
![]() |
79a4403c9c | ||
![]() |
0eef9260a8 | ||
![]() |
de4b145e96 | ||
![]() |
b5718d0e2f | ||
![]() |
cff819d46f | ||
![]() |
026ed6db4f | ||
![]() |
a3f72fec6c | ||
![]() |
d25f8a9230 | ||
![]() |
d2a8f0b60a | ||
![]() |
b6f8f9f9a3 | ||
![]() |
00ce968c6a | ||
![]() |
6038bd7749 | ||
![]() |
9236ec0f80 | ||
![]() |
1e8b32a253 | ||
![]() |
12ae60c6f2 | ||
![]() |
094f16f67c | ||
![]() |
e7609d7a91 | ||
![]() |
dc4aa248c8 | ||
![]() |
b5ffe58506 | ||
![]() |
d3ab6db641 | ||
![]() |
7965211fa0 | ||
![]() |
8f34a00f18 | ||
![]() |
8ffd81475a | ||
![]() |
3555142ead | ||
![]() |
80920ad061 | ||
![]() |
c5765f0213 | ||
![]() |
345bf1ae24 | ||
![]() |
216a0a9889 | ||
![]() |
95ed36c1ee | ||
![]() |
f6fae6713d | ||
![]() |
e1891570e3 | ||
![]() |
a1c1624b81 | ||
![]() |
084591fdc7 | ||
![]() |
365dd57128 | ||
![]() |
155da8c074 | ||
![]() |
cb9308ac2a | ||
![]() |
6f6130b12b | ||
![]() |
851cd817de | ||
![]() |
66f2ee40be | ||
![]() |
792b46b03c | ||
![]() |
6aa887d5a5 | ||
![]() |
143b80b3a6 | ||
![]() |
a421f73e26 | ||
![]() |
3e30c984cf | ||
![]() |
7050e47a8c | ||
![]() |
80deeff141 | ||
![]() |
46b5dc3398 | ||
![]() |
86bb9b0508 | ||
![]() |
84f61be841 | ||
![]() |
d1f39e9a00 | ||
![]() |
f18a3ef33f | ||
![]() |
a9bed2ffa0 | ||
![]() |
3fd2e1c3c3 | ||
![]() |
f7920522ac | ||
![]() |
e2f5c6bdf5 | ||
![]() |
ad8b04b6a4 | ||
![]() |
fedc925111 | ||
![]() |
982410d6e1 | ||
![]() |
b8f191d180 | ||
![]() |
7332f8d5c4 | ||
![]() |
25c0020924 | ||
![]() |
ebc6619e4f | ||
![]() |
fb421bccd1 | ||
![]() |
b052706d74 | ||
![]() |
57e2cba90f | ||
![]() |
60df6043b1 | ||
![]() |
10e5cb16f6 | ||
![]() |
35698bfbe4 | ||
![]() |
a14802eaea | ||
![]() |
066acb0940 | ||
![]() |
8206205d57 | ||
![]() |
b73c31add0 | ||
![]() |
a2674ac3ab | ||
![]() |
ccf8f93f14 | ||
![]() |
006845ee07 | ||
![]() |
abc1b39671 | ||
![]() |
a6d37e7ed1 | ||
![]() |
122d23c32c | ||
![]() |
ece5671292 | ||
![]() |
8eb4929551 | ||
![]() |
42a9586aaf |
1114 changed files with 15020 additions and 4008 deletions
6
.dockerignore
Normal file
6
.dockerignore
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
*.md
|
||||||
|
build/**
|
||||||
|
Makefile
|
||||||
|
.perltidy
|
||||||
|
*.json
|
||||||
|
*.png
|
74
.github/workflows/generate_mariadb_examples.yml
vendored
Normal file
74
.github/workflows/generate_mariadb_examples.yml
vendored
Normal file
|
@ -0,0 +1,74 @@
|
||||||
|
# This is a basic workflow to help you get started with Actions
|
||||||
|
|
||||||
|
name: Compile MT examples for MariaDB
|
||||||
|
|
||||||
|
# Controls when the workflow will run
|
||||||
|
on:
|
||||||
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
|
jobs:
|
||||||
|
mysql_examples:
|
||||||
|
# This workflow contains a single job called "build"
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
MARIADB_VERSION: [10.2, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9]
|
||||||
|
# The type of runner that the job will run on
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
|
steps:
|
||||||
|
- name: Setup MySQL Tuner repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up MySQL
|
||||||
|
uses: shogo82148/actions-setup-mysql@v1
|
||||||
|
with:
|
||||||
|
distribution: 'mariadb'
|
||||||
|
root-password: "root"
|
||||||
|
mysql-version: "${{ matrix.MARIADB_VERSION }}"
|
||||||
|
|
||||||
|
- name: Injecting credentials
|
||||||
|
run: |
|
||||||
|
echo -e "[client]\nuser=root\npassword=root\nhost=127.0.0.1\nprotocol=TCP" > $HOME/.my.cnf
|
||||||
|
|
||||||
|
- name: Cloning test_db dataset
|
||||||
|
run: |
|
||||||
|
git clone https://github.com/datacharmer/test_db.git
|
||||||
|
|
||||||
|
- name: Test database is Up and Running
|
||||||
|
run: |
|
||||||
|
sleep 5s
|
||||||
|
sudo netstat -ltpn
|
||||||
|
mysql -e 'select version();'
|
||||||
|
|
||||||
|
- name: Injecting test_db dataset
|
||||||
|
run: |
|
||||||
|
cd test_db
|
||||||
|
mysql -e 'CREATE DATABASE data;'
|
||||||
|
mysql data< ./employees.sql
|
||||||
|
cd -
|
||||||
|
rm -rf test_db
|
||||||
|
# Runs a single command using the runners shell
|
||||||
|
- name: Json Run verbose mode with dumpdir result
|
||||||
|
run: |
|
||||||
|
mkdir -p ./examples/github/result/mariadb/${{ matrix.MARIADB_VERSION }}
|
||||||
|
sudo perl ./mysqltuner.pl --user=root --pass=root --protocol tcp --verbose --dumpdir=./examples/github/result/mariadb/${{ matrix.MARIADB_VERSION }} --json | tee -a ./examples/github/result/mariadb/${{ matrix.MARIADB_VERSION }}/result.json
|
||||||
|
|
||||||
|
- name: Standard Run verbose mode without dumpdir result
|
||||||
|
run: |
|
||||||
|
sudo perl ./mysqltuner.pl --user=root --pass=root --protocol tcp --verbose | tee -a ./examples/github/result/mariadb/${{ matrix.MARIADB_VERSION }}/result.txt
|
||||||
|
|
||||||
|
- name: Adding examples to Git
|
||||||
|
run: |
|
||||||
|
git add ./examples/github/result/mariadb/${{ matrix.MARIADB_VERSION }}/* || true
|
||||||
|
|
||||||
|
- name: Run the Action Commit
|
||||||
|
uses: devops-infra/action-commit-push@master
|
||||||
|
with:
|
||||||
|
github_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
add_timestamp: true
|
||||||
|
commit_prefix: "[AUTO]"
|
||||||
|
commit_message: "Updates MariaDb result examples (via Actions)"
|
||||||
|
force: false
|
||||||
|
target_branch: examples-mariadb-${{ matrix.MARIADB_VERSION }}
|
74
.github/workflows/generate_mysql_examples.yml
vendored
Normal file
74
.github/workflows/generate_mysql_examples.yml
vendored
Normal file
|
@ -0,0 +1,74 @@
|
||||||
|
# This is a basic workflow to help you get started with Actions
|
||||||
|
|
||||||
|
name: Compile MT examples For MySQL
|
||||||
|
|
||||||
|
# Controls when the workflow will run
|
||||||
|
on:
|
||||||
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
|
jobs:
|
||||||
|
mysql_examples:
|
||||||
|
# This workflow contains a single job called "build"
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
MYSQL_VERSION: [5.6, 5.7, 8.0]
|
||||||
|
# The type of runner that the job will run on
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
|
steps:
|
||||||
|
- name: Setup MySQL Tuner repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up MySQL
|
||||||
|
uses: shogo82148/actions-setup-mysql@v1
|
||||||
|
with:
|
||||||
|
distribution: 'mysql'
|
||||||
|
root-password: "root"
|
||||||
|
mysql-version: "${{ matrix.MYSQL_VERSION }}"
|
||||||
|
|
||||||
|
- name: Injecting credentials
|
||||||
|
run: |
|
||||||
|
echo -e "[client]\nuser=root\npassword=root\nhost=127.0.0.1\nprotocol=TCP" > $HOME/.my.cnf
|
||||||
|
|
||||||
|
- name: Cloning test_db dataset
|
||||||
|
run: |
|
||||||
|
git clone https://github.com/datacharmer/test_db.git
|
||||||
|
|
||||||
|
- name: Test database is Up and Running
|
||||||
|
run: |
|
||||||
|
sleep 5s
|
||||||
|
sudo netstat -ltpn
|
||||||
|
mysql -e 'select version();'
|
||||||
|
|
||||||
|
- name: Injecting test_db dataset
|
||||||
|
run: |
|
||||||
|
cd test_db
|
||||||
|
mysql -e 'CREATE DATABASE data;'
|
||||||
|
mysql data< ./employees.sql
|
||||||
|
cd -
|
||||||
|
rm -rf test_db
|
||||||
|
# Runs a single command using the runners shell
|
||||||
|
- name: Json Run verbose mode with dumpdir result
|
||||||
|
run: |
|
||||||
|
mkdir -p ./examples/github/result/mysql/${{ matrix.MYSQL_VERSION }}
|
||||||
|
sudo perl ./mysqltuner.pl --user=root --pass=root --protocol tcp --verbose --dumpdir=./examples/github/result/mysql/${{ matrix.MYSQL_VERSION }} --json | tee -a ./examples/github/result/mysql/${{ matrix.MYSQL_VERSION }}/result.json
|
||||||
|
|
||||||
|
- name: Standard Run verbose mode without dumpdir result
|
||||||
|
run: |
|
||||||
|
sudo perl ./mysqltuner.pl --user=root --pass=root --protocol tcp --verbose | tee -a ./examples/github/result/mysql/${{ matrix.MYSQL_VERSION }}/result.txt
|
||||||
|
|
||||||
|
- name: Adding examples to Git
|
||||||
|
run: |
|
||||||
|
git add ./examples/github/result/mysql/${{ matrix.MYSQL_VERSION }}/* || true
|
||||||
|
|
||||||
|
- name: Run the Action Commit
|
||||||
|
uses: devops-infra/action-commit-push@master
|
||||||
|
with:
|
||||||
|
github_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
add_timestamp: true
|
||||||
|
commit_prefix: "[AUTO]"
|
||||||
|
commit_message: "Updates MySQL result examples (via Actions)"
|
||||||
|
force: false
|
||||||
|
target_branch: examples-mysql-${{ matrix.MYSQL_VERSION }}
|
41
.github/workflows/publish_release.yml
vendored
Normal file
41
.github/workflows/publish_release.yml
vendored
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
# Sequence of patterns matched against refs/tags
|
||||||
|
tags:
|
||||||
|
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
|
||||||
|
|
||||||
|
name: Create Release
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Create Release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Create release
|
||||||
|
id: create_release
|
||||||
|
uses: actions/create-release@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
|
||||||
|
with:
|
||||||
|
tag_name: ${{ github.ref }}
|
||||||
|
release_name: Release ${{ github.ref }}
|
||||||
|
body: |
|
||||||
|
Changes in this Release:
|
||||||
|
Please consult commit log and issue tracker on Github for more information.
|
||||||
|
draft: true
|
||||||
|
prerelease: false
|
||||||
|
- name: Upload release asset
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
asset_content_type: application/zip
|
||||||
|
- name: Publish release
|
||||||
|
uses: StuYarrow/publish-release@v1.1.2
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
id: ${{ steps.create_release.outputs.id }}
|
77
.github/workflows/pull_request.yml
vendored
Normal file
77
.github/workflows/pull_request.yml
vendored
Normal file
|
@ -0,0 +1,77 @@
|
||||||
|
# This is a basic workflow to help you get started with Actions
|
||||||
|
|
||||||
|
name: CI for MySQL Tuner for MySQL 5.7 and 8.0
|
||||||
|
|
||||||
|
# Controls when the workflow will run
|
||||||
|
on:
|
||||||
|
# Triggers the workflow on push or pull request events but only for the master branch
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
|
jobs:
|
||||||
|
# This workflow contains a single job called "build"
|
||||||
|
test_help:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
MYSQL_VERSION: [5.7, 8.0]
|
||||||
|
# The type of runner that the job will run on
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
|
steps:
|
||||||
|
- name: Setup MySQL Tuner repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up MySQL
|
||||||
|
uses: mirromutth/mysql-action@v1.1
|
||||||
|
with:
|
||||||
|
mysql root password: "root"
|
||||||
|
mysql version: "${{ matrix.MYSQL_VERSION }}"
|
||||||
|
|
||||||
|
- name: Injecting credentials
|
||||||
|
run: |
|
||||||
|
echo -e "[client]\nuser=root\npassword=root\nhost=127.0.0.1\nprotocol=TCP" > $HOME/.my.cnf
|
||||||
|
|
||||||
|
- name: waiting database
|
||||||
|
run: |
|
||||||
|
sleep 20s
|
||||||
|
|
||||||
|
- name: Run help mode
|
||||||
|
run: |
|
||||||
|
sudo perl ./mysqltuner.pl --help
|
||||||
|
|
||||||
|
test_with_empty_db:
|
||||||
|
needs: test_help
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
MYSQL_VERSION: [5.7, 8.0]
|
||||||
|
# The type of runner that the job will run on
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
|
steps:
|
||||||
|
- name: Setup MySQL Tuner repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up MySQL
|
||||||
|
uses: mirromutth/mysql-action@v1.1
|
||||||
|
with:
|
||||||
|
mysql root password: "root"
|
||||||
|
mysql version: "${{ matrix.MYSQL_VERSION }}"
|
||||||
|
|
||||||
|
- name: Injecting credentials
|
||||||
|
run: |
|
||||||
|
echo -e "[client]\nuser=root\npassword=root\nhost=127.0.0.1\nprotocol=TCP" > $HOME/.my.cnf
|
||||||
|
|
||||||
|
- name: waiting database
|
||||||
|
run: |
|
||||||
|
sleep 20s
|
||||||
|
|
||||||
|
# Runs a single command using the runners shell
|
||||||
|
- name: Run verbose mode
|
||||||
|
run: sudo perl ./mysqltuner.pl --user=root --pass=root --protocol tcp --verbose
|
56
.github/workflows/run_mt_with_db.yml
vendored
Normal file
56
.github/workflows/run_mt_with_db.yml
vendored
Normal file
|
@ -0,0 +1,56 @@
|
||||||
|
# This is a basic workflow to help you get started with Actions
|
||||||
|
|
||||||
|
name: Test with databases
|
||||||
|
|
||||||
|
# Controls when the workflow will run
|
||||||
|
on:
|
||||||
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
|
jobs:
|
||||||
|
# This workflow contains a single job called "build"
|
||||||
|
run_mt_with_db:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
MYSQL_VERSION: [5.7, 8.0]
|
||||||
|
# The type of runner that the job will run on
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
|
steps:
|
||||||
|
- name: Setup MySQL Tuner repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up MySQL
|
||||||
|
uses: mirromutth/mysql-action@v1.1
|
||||||
|
with:
|
||||||
|
mysql root password: "root"
|
||||||
|
mysql version: "${{ matrix.MYSQL_VERSION }}"
|
||||||
|
|
||||||
|
- name: Injecting credentials
|
||||||
|
run: |
|
||||||
|
echo -e "[client]\nuser=root\npassword=root\nhost=127.0.0.1\nprotocol=TCP" > $HOME/.my.cnf
|
||||||
|
|
||||||
|
- name: Cloning test_db dataset
|
||||||
|
run: |
|
||||||
|
git clone https://github.com/datacharmer/test_db.git
|
||||||
|
|
||||||
|
- name: Injecting test_db dataset
|
||||||
|
run: |
|
||||||
|
sleep 5s
|
||||||
|
cd test_db
|
||||||
|
netstat -ltpn
|
||||||
|
mysql -e 'select version();'
|
||||||
|
mysql -e 'CREATE DATABASE data;'
|
||||||
|
mysql data< ./employees.sql
|
||||||
|
cd -
|
||||||
|
rm -rf test_db
|
||||||
|
|
||||||
|
# Runs a single command using the runners shell
|
||||||
|
- name: Run help mode
|
||||||
|
run: perl ./mysqltuner.pl --help
|
||||||
|
|
||||||
|
# Runs a single command using the runners shell
|
||||||
|
- name: Run verbose mode
|
||||||
|
run: sudo perl ./mysqltuner.pl --user=root --pass=root --protocol tcp --verbose
|
48
.github/workflows/update_cve_and_docs.yml
vendored
Normal file
48
.github/workflows/update_cve_and_docs.yml
vendored
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
# This is a basic workflow to help you get started with Actions
|
||||||
|
|
||||||
|
name: CVE and Docs update
|
||||||
|
|
||||||
|
# Controls when the workflow will run
|
||||||
|
on:
|
||||||
|
# Scheudle every sunday at 00:00
|
||||||
|
#schedule:
|
||||||
|
# - cron: '0 0 * * 0'
|
||||||
|
|
||||||
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
|
jobs:
|
||||||
|
# This workflow contains a single job called "build"
|
||||||
|
build:
|
||||||
|
# The type of runner that the job will run on
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
|
steps:
|
||||||
|
- name: Setup MySQL Tuner repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
pwd
|
||||||
|
cd build
|
||||||
|
pwd
|
||||||
|
sudo bash ./installStaff.sh
|
||||||
|
|
||||||
|
- name: Update CVE and docs
|
||||||
|
run: |
|
||||||
|
pwd
|
||||||
|
cd ./build
|
||||||
|
pwd
|
||||||
|
sudo bash ./updateStaff.sh
|
||||||
|
|
||||||
|
- name: Run the Action
|
||||||
|
uses: devops-infra/action-commit-push@master
|
||||||
|
with:
|
||||||
|
github_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
add_timestamp: true
|
||||||
|
commit_prefix: "[AUTO]"
|
||||||
|
commit_message: "Updates CVE and docs (via Actions)"
|
||||||
|
force: false
|
||||||
|
target_branch: "cve-docs"
|
15
.gitignore
vendored
15
.gitignore
vendored
|
@ -5,3 +5,18 @@ build/cve*
|
||||||
build/vulnerabilities*
|
build/vulnerabilities*
|
||||||
*.bak
|
*.bak
|
||||||
Vagrant/Vagrantfile
|
Vagrant/Vagrantfile
|
||||||
|
Vagrant/data
|
||||||
|
Vagrant/.vagrant
|
||||||
|
contents
|
||||||
|
contents/*
|
||||||
|
reports_*
|
||||||
|
golang/prog-*
|
||||||
|
.vscode
|
||||||
|
test_db/**
|
||||||
|
result*
|
||||||
|
result_*
|
||||||
|
sql/*.sql
|
||||||
|
sql/*.csv
|
||||||
|
cve.csv
|
||||||
|
default*.cnf
|
||||||
|
.env
|
176
.travis.yml
176
.travis.yml
|
@ -1,176 +0,0 @@
|
||||||
sudo: false
|
|
||||||
|
|
||||||
language: perl
|
|
||||||
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- addons:
|
|
||||||
mariadb: "5.5"
|
|
||||||
name: "MariaDB 5.5/Perl 5.24"
|
|
||||||
perl: "5.24"
|
|
||||||
- addons:
|
|
||||||
mariadb: "10.0"
|
|
||||||
name: "MariaDB 10.0/Perl 5.24"
|
|
||||||
perl: "5.24"
|
|
||||||
- addons:
|
|
||||||
mariadb: "10.1"
|
|
||||||
name: "MariaDB 10.1/Perl 5.24"
|
|
||||||
perl: "5.24"
|
|
||||||
- addons:
|
|
||||||
mariadb: "10.2"
|
|
||||||
name: "MariaDB 10.2/Perl 5.24"
|
|
||||||
perl: "5.24"
|
|
||||||
- addons:
|
|
||||||
mariadb: "10.3"
|
|
||||||
name: "MariaDB 10.3/Perl 5.24"
|
|
||||||
perl: "5.24"
|
|
||||||
- addons:
|
|
||||||
mysql: "5.5"
|
|
||||||
name: "MySQL 5.5/Perl 5.24"
|
|
||||||
perl: "5.24"
|
|
||||||
- addons:
|
|
||||||
mysql: "5.6"
|
|
||||||
name: "MySQL 5.6/Perl 5.24"
|
|
||||||
perl: "5.24"
|
|
||||||
- addons:
|
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- mysql-5.7-trusty
|
|
||||||
packages:
|
|
||||||
- mysql-server
|
|
||||||
- mysql-client
|
|
||||||
name: "MySQL 5.7/Perl 5.24"
|
|
||||||
perl: "5.24"
|
|
||||||
- addons:
|
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- mysql-8.0-trusty
|
|
||||||
packages:
|
|
||||||
- mysql-server
|
|
||||||
- mysql-client
|
|
||||||
name: "MySQL 8/Perl 5.24"
|
|
||||||
perl: "5.24"
|
|
||||||
|
|
||||||
- addons:
|
|
||||||
mariadb: "5.5"
|
|
||||||
name: "MariaDB 5.5/Perl 5.16"
|
|
||||||
perl: "5.16"
|
|
||||||
- addons:
|
|
||||||
mariadb: "10.0"
|
|
||||||
name: "MariaDB 10.0/Perl 5.16"
|
|
||||||
perl: "5.16"
|
|
||||||
- addons:
|
|
||||||
mariadb: "10.1"
|
|
||||||
name: "MariaDB 10.1/Perl 5.16"
|
|
||||||
perl: "5.16"
|
|
||||||
- addons:
|
|
||||||
mariadb: "10.2"
|
|
||||||
name: "MariaDB 10.2/Perl 5.16"
|
|
||||||
perl: "5.16"
|
|
||||||
- addons:
|
|
||||||
mariadb: "10.3"
|
|
||||||
name: "MariaDB 10.3/Perl 5.16"
|
|
||||||
perl: "5.16"
|
|
||||||
- addons:
|
|
||||||
mysql: "5.5"
|
|
||||||
name: "MySQL 5.5/Perl 5.16"
|
|
||||||
perl: "5.16"
|
|
||||||
- addons:
|
|
||||||
mysql: "5.6"
|
|
||||||
name: "MySQL 5.6/Perl 5.16"
|
|
||||||
perl: "5.16"
|
|
||||||
- addons:
|
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- mysql-5.7-trusty
|
|
||||||
packages:
|
|
||||||
- mysql-server
|
|
||||||
- mysql-client
|
|
||||||
name: "MySQL 5.7/Perl 5.16"
|
|
||||||
perl: "5.16"
|
|
||||||
- addons:
|
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- mysql-8.0-trusty
|
|
||||||
packages:
|
|
||||||
- mysql-server
|
|
||||||
- mysql-client
|
|
||||||
name: "MySQL 8/Perl 5.16"
|
|
||||||
perl: "5.16"
|
|
||||||
|
|
||||||
- addons:
|
|
||||||
mariadb: "5.5"
|
|
||||||
name: "MariaDB 5.5/Perl 5.10"
|
|
||||||
perl: "5.10"
|
|
||||||
- addons:
|
|
||||||
mariadb: "10.0"
|
|
||||||
name: "MariaDB 10.0/Perl 5.10"
|
|
||||||
perl: "5.10"
|
|
||||||
- addons:
|
|
||||||
mariadb: "10.1"
|
|
||||||
name: "MariaDB 10.1/Perl 5.10"
|
|
||||||
perl: "5.10"
|
|
||||||
- addons:
|
|
||||||
mariadb: "10.2"
|
|
||||||
name: "MariaDB 10.2/Perl 5.10"
|
|
||||||
perl: "5.10"
|
|
||||||
- addons:
|
|
||||||
mariadb: "10.3"
|
|
||||||
name: "MariaDB 10.3/Perl 5.10"
|
|
||||||
perl: "5.10"
|
|
||||||
- addons:
|
|
||||||
mysql: "5.5"
|
|
||||||
name: "MySQL 5.5/Perl 5.10"
|
|
||||||
perl: "5.10"
|
|
||||||
- addons:
|
|
||||||
mysql: "5.6"
|
|
||||||
name: "MySQL 5.6/Perl 5.10"
|
|
||||||
perl: "5.10"
|
|
||||||
- addons:
|
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- mysql-5.7-trusty
|
|
||||||
packages:
|
|
||||||
- mysql-server
|
|
||||||
- mysql-client
|
|
||||||
name: "MySQL 5.7/Perl 5.10"
|
|
||||||
perl: "5.10"
|
|
||||||
- addons:
|
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- mysql-8.0-trusty
|
|
||||||
packages:
|
|
||||||
- mysql-server
|
|
||||||
- mysql-client
|
|
||||||
name: "MySQL 8/Perl 5.10"
|
|
||||||
perl: "5.10"
|
|
||||||
|
|
||||||
before_install:
|
|
||||||
- git clone git://github.com/haarg/perl-travis-helper
|
|
||||||
- source perl-travis-helper/init
|
|
||||||
- build-perl
|
|
||||||
- perl -V
|
|
||||||
|
|
||||||
install:
|
|
||||||
- cpanm --quiet --notest Data::Dumper
|
|
||||||
- cpanm --quiet --notest JSON
|
|
||||||
- cpanm --quiet --notest Perl::Critic
|
|
||||||
- cpanm --quiet --notest Text::Template
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- echo -e "[client]\nuser=root\npassword=\"\"" > .my.cnf
|
|
||||||
- chmod 600 .my.cnf
|
|
||||||
- git clone https://github.com/datacharmer/test_db.git
|
|
||||||
- cd test_db
|
|
||||||
- cat employees.sql | grep -v 'storage_engine' | mysql
|
|
||||||
- cd ..
|
|
||||||
|
|
||||||
script:
|
|
||||||
- perlcritic --exclude InputOutput::ProhibitInteractiveTest mysqltuner.pl
|
|
||||||
- ./mysqltuner.pl --verbose --tbstat 2>stderr.txt | tee -a "stdout.txt"
|
|
||||||
|
|
||||||
after_script:
|
|
||||||
- echo "Standard Output: $(cat stdout.txt)"
|
|
||||||
- echo "Standard Error : $(cat stderr.txt)"
|
|
||||||
- [ "0" = "$(wl -l stderr.txt)" ] || exit 2
|
|
||||||
|
|
|
@ -127,7 +127,7 @@ these guidelines is the best way to get your work included in MySQLTuner.
|
||||||
<a name="git-flow"></a>
|
<a name="git-flow"></a>
|
||||||
#### Git Flow for pull requests
|
#### Git Flow for pull requests
|
||||||
|
|
||||||
1. [Fork](http://help.github.com/fork-a-repo/) the project, clone your fork,
|
1. [Fork](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo) the project, clone your fork,
|
||||||
and configure the remotes:
|
and configure the remotes:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -181,7 +181,7 @@ Copy of the license is available at [LICENSE]
|
||||||
## MySQLTuner Code Conventions
|
## MySQLTuner Code Conventions
|
||||||
|
|
||||||
1. Check code convention using **perltidy** and **perlcritic**
|
1. Check code convention using **perltidy** and **perlcritic**
|
||||||
2. Don't manually update the version number in `mysqltuner.pl`.
|
2. Don't manually update the version number in `mysqltuner.pl`.
|
||||||
|
|
||||||
|
|
||||||
[Enhancement issue]:https://github.com/major/MySQLTuner-perl/labels/enhancement
|
[Enhancement issue]:https://github.com/major/MySQLTuner-perl/labels/enhancement
|
||||||
|
|
1
CURRENT_VERSION.txt
Normal file
1
CURRENT_VERSION.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
2.5.4
|
31
Dockerfile
Normal file
31
Dockerfile
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
FROM ubuntu:latest
|
||||||
|
|
||||||
|
LABEL maintainer="jmrenouard@gmail.com"
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
RUN apt-get update && apt upgrade -y && apt-get install -yq --no-install-recommends \
|
||||||
|
apt-utils \
|
||||||
|
curl \
|
||||||
|
wget \
|
||||||
|
perl \
|
||||||
|
perl-doc \
|
||||||
|
mysql-client \
|
||||||
|
libjson-perl \
|
||||||
|
libtext-template-perl \
|
||||||
|
&& apt-get clean \
|
||||||
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
|
&& mkdir -p /results
|
||||||
|
RUN apt clean all
|
||||||
|
WORKDIR /
|
||||||
|
COPY ./mysqltuner.pl /mysqltuner.pl
|
||||||
|
COPY ./vulnerabilities.csv /vulnerabilities.txt
|
||||||
|
COPY ./basic_passwords.txt /basic_passwords.txt
|
||||||
|
COPY ./template_example.tpl /template.tpl
|
||||||
|
|
||||||
|
ENTRYPOINT [ "perl", "/mysqltuner.pl", "--passwordfile", "/basic_passwords.txt",\
|
||||||
|
"--cvefile", "/vulnerabilities.txt", "--nosysstat", "--defaults-file", \
|
||||||
|
"/defaults.cnf", "--dumpdir", "/results", "--outputfile", \
|
||||||
|
"/results/mysqltuner.txt", "--template", "/template.tpl", \
|
||||||
|
"--reportfile", "/results/mysqltuner.html" ]
|
||||||
|
CMD ["--verbose" ]
|
31
FEATURES.md
Normal file
31
FEATURES.md
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
Features list for option: --feature (dev only)
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
* cve_recommendations
|
||||||
|
* log_file_recommendations
|
||||||
|
* make_recommendations
|
||||||
|
* mariadb_aria
|
||||||
|
* mariadb_connect
|
||||||
|
* mariadb_galera
|
||||||
|
* mariadb_rockdb
|
||||||
|
* mariadb_spider
|
||||||
|
* mariadb_threadpool
|
||||||
|
* mariadb_tokudb
|
||||||
|
* mariadb_xtradb
|
||||||
|
* mysql_databases
|
||||||
|
* mysql_indexes
|
||||||
|
* mysql_innodb
|
||||||
|
* mysql_myisam
|
||||||
|
* mysql_pfs
|
||||||
|
* mysql_routines
|
||||||
|
* mysql_setup
|
||||||
|
* mysql_stats
|
||||||
|
* mysql_table_structures
|
||||||
|
* mysql_tables
|
||||||
|
* mysql_triggers
|
||||||
|
* mysql_views
|
||||||
|
* security_recommendations
|
||||||
|
* system_recommendations
|
||||||
|
* validate_mysql_version
|
||||||
|
* validate_tuner_version
|
831
INTERNALS.md
831
INTERNALS.md
|
@ -1,407 +1,424 @@
|
||||||
## MySQLTuner Internals
|
## MySQLTuner Internals
|
||||||
|
|
||||||
## Table of contents
|
[](https://www.buymeacoffee.com/jmrenouard)
|
||||||
|
## Table of contents
|
||||||
* [MySQLTuner steps](#mysqltuner-steps)
|
|
||||||
* [Get login information steps](#mysqltuner-get-login-information-steps)
|
- [MySQLTuner Internals](#mysqltuner-internals)
|
||||||
* [System checks](#mysqltuner-system-checks)
|
- [Table of contents](#table-of-contents)
|
||||||
* [Server version checks](#mysqltuner-server-version-checks)
|
- [MySQLTuner steps](#mysqltuner-steps)
|
||||||
* [MySQL Storage engine general information](#mysql-storage-engine-general-information)
|
- [MySQLTuner get login information steps](#mysqltuner-get-login-information-steps)
|
||||||
* [Security checks](#mysqltuner-security-checks)
|
- [MySQLTuner system checks](#mysqltuner-system-checks)
|
||||||
* [CVE checks](#mysqltuner-cve-checks)
|
- [MySQLTuner Server version checks](#mysqltuner-server-version-checks)
|
||||||
* [Database information](#mysqltuner-database-information)
|
- [Mysql error log file analysis](#mysql-error-log-file-analysis)
|
||||||
* [Index information](#mysqltuner-index-information)
|
- [MySQL Storage engine general information](#mysql-storage-engine-general-information)
|
||||||
* [Connections information](#mysqltuner-connections-information)
|
- [MySQLTuner security checks](#mysqltuner-security-checks)
|
||||||
* [Server information](#mysqltuner-server-information)
|
- [MySQLTuner CVE vulnerabilities detection](#mysqltuner-cve-vulnerabilities-detection)
|
||||||
* [Sort, join and temp table information](#mysqltuner-sort-join-and-temp-table-information)
|
- [MySQLTuner database information](#mysqltuner-database-information)
|
||||||
* [Global buffer information](#mysqltuner-global-buffer-information)
|
- [MySQLTuner index information](#mysqltuner-index-information)
|
||||||
* [Query cache checks](#mysqltuner-query-cache-checks)
|
- [MySQLTuner Connections information](#mysqltuner-connections-information)
|
||||||
* [Slow queries checks](#mysqltuner-slow-queries-checks)
|
- [MySQLTuner server information](#mysqltuner-server-information)
|
||||||
* [ThreadPool information](#mysqltuner-threadpool-information)
|
- [MySQLTuner sort, join and temp table information](#mysqltuner-sort-join-and-temp-table-information)
|
||||||
* [Replication checks](#mysqltuner-replication-checks)
|
- [MySQLTuner global buffer information](#mysqltuner-global-buffer-information)
|
||||||
* [InnoDB information](#mysqltuner-innodb-information)
|
- [MySQLTuner query cache checks](#mysqltuner-query-cache-checks)
|
||||||
* [MYISAM information](#mysqltuner-myisam-information)
|
- [MySQLTuner memory checks](#mysqltuner-memory-checks)
|
||||||
* [ARIADB information](#mysqltuner-ariadb-information)
|
- [MySQLTuner slow queries checks](#mysqltuner-slow-queries-checks)
|
||||||
* [XTRADB information](#mysqltuner-xtradb-information)
|
- [MySQLTuner replication checks](#mysqltuner-replication-checks)
|
||||||
* [TOKUDB information](#mysqltuner-tokudb-information)
|
- [MySQLTuner InnoDB information](#mysqltuner-innodb-information)
|
||||||
* [ROCKDB information](#mysqltuner-rockdb-information)
|
- [MySQLTuner ARIADB information](#mysqltuner-ariadb-information)
|
||||||
* [CONNECT information](#mysqltuner-connect-information)
|
- [MySQLTuner MYISAM information](#mysqltuner-myisam-information)
|
||||||
* [SPIDER information](#mysqltuner-spider-information)
|
- [MySQLTuner Galera information](#mysqltuner-galera-information)
|
||||||
* [GALERA information](#mysqltuner-galera-information)
|
- [MySQLTuner TokuDB information](#mysqltuner-tokudb-information)
|
||||||
* [Performance Schema information](#mysqltuner-performance-schema-and-sysschema-information)
|
- [MySQLTuner XtraDB information](#mysqltuner-xtradb-information)
|
||||||
|
- [MySQLTuner Connect information](#mysqltuner-connect-information)
|
||||||
## MySQLTuner steps
|
- [MySQLTuner Spider information](#mysqltuner-spider-information)
|
||||||
|
- [MySQLTuner RocksDb information](#mysqltuner-rocksdb-information)
|
||||||
* Header Print
|
- [MySQLTuner Thread pool information](#mysqltuner-thread-pool-information)
|
||||||
* Get login information
|
- [MySQLTuner performance schema and sysschema information](#mysqltuner-performance-schema-and-sysschema-information)
|
||||||
* Set up some OS variables
|
|
||||||
* Toss variables/status into hashes
|
## MySQLTuner steps
|
||||||
* Get information about the tuning connexion
|
|
||||||
* Check current MySQL version
|
* Header Print
|
||||||
* Suggest 64-bit upgrade
|
* Get login information
|
||||||
* Show enabled storage engines
|
* Set up some OS variables
|
||||||
* Show informations about databases (option: --dbstat)
|
* Toss variables/status into hashes
|
||||||
* Show informations about indexes (option: --idxstat)
|
* Get information about the tuning connection
|
||||||
* Display some security recommendations
|
* Check current MySQL version
|
||||||
* Calculate everything we need
|
* Suggest 64-bit upgrade
|
||||||
* Print the server stats
|
* Analyze mysqld error log file
|
||||||
* Print MyISAM stats
|
* Show enabled storage engines
|
||||||
* Print InnoDB stats
|
* Show informations about databases (option: --dbstat)
|
||||||
* Print AriaDB stats
|
* Show informations about indexes (option: --idxstat)
|
||||||
* Print replication info
|
* Display some security recommendations
|
||||||
* Make recommendations based on stats
|
* Calculate everything we need
|
||||||
* Close reportfile if needed
|
* Print the server stats
|
||||||
* Dump result if debug is on
|
* Print MyISAM stats
|
||||||
|
* Print InnoDB stats
|
||||||
## MySQLTuner get login information steps
|
* Print AriaDB stats
|
||||||
|
* Print replication info
|
||||||
* Is a login possible?
|
* Make recommendations based on stats
|
||||||
* Force socket?
|
* Close reportfile if needed
|
||||||
* Remote connection?
|
* Dump result if debug is on
|
||||||
* _Specifying available RAM is required_
|
|
||||||
* Got user/pass on command line?
|
## MySQLTuner get login information steps
|
||||||
* mysql-quickbackup credentials available?
|
|
||||||
* Plesk credentials available?
|
* Is a login possible?
|
||||||
* DirectAdmin credentials available?
|
* Force socket?
|
||||||
* Debian maintenance account credentials available?
|
* Remote connection?
|
||||||
* Just try a login
|
* _Specifying available RAM is required_
|
||||||
* If working, and .my.cnf isn't there, **WARNING**
|
* Got user/pass on command line?
|
||||||
* If working, and .my.cnf is there, okay
|
* mysql-quickbackup credentials available?
|
||||||
* Prompt for creds on the console
|
* Plesk credentials available?
|
||||||
|
* DirectAdmin credentials available?
|
||||||
## MySQLTuner system checks
|
* Debian maintenance account credentials available?
|
||||||
* 32-bit w/>2GB RAM check
|
* Just try a login
|
||||||
* Check number of opened ports (warning if more than 9 ports opened)
|
* If working, and .my.cnf isn't there, **WARNING**
|
||||||
* Check 80, 8080, 443 and 8443 ports if warning are raised if there are opened
|
* If working, and .my.cnf is there, okay
|
||||||
* Check if some banned ports are not opened (option --bannedports separated by comma)
|
* Prompt for creds on the console
|
||||||
* Check if non kernel and user process except mysqld are not using more than 15% of total physical memory)
|
|
||||||
* Check vm.swapiness
|
## MySQLTuner system checks
|
||||||
* Check /etc/security/limit.conf
|
* Check whether more than 2GB RAM present if on 32-bit OS
|
||||||
* Check sysctl entries: sunrpc.tcp_slot_entries, vm.swappiness, fs.aio-fs-nr
|
* Check number of opened ports (warn when more than 9 ports opened)
|
||||||
* Check mount point
|
* Check 80, 8080, 443 and 8443 ports if warning is raised if they are opened
|
||||||
* Check Ethernet card
|
* Check if some banned ports are not opened (option --bannedports separated by comma)
|
||||||
* Check load average
|
* Check if non kernel and user process except mysqld are not using more than 15% of total physical memory
|
||||||
|
* Check vm.swapiness
|
||||||
## MySQLTuner Server version checks
|
* Check /etc/security/limit.conf
|
||||||
* EOL MySQL version check
|
* Check sysctl entries: sunrpc.tcp_slot_entries, vm.swappiness, fs.aio-fs-nr
|
||||||
* Currently MySQL < 5.1 are EOF considered.
|
* Check mount point
|
||||||
* Using 5.5+ version of MySQL for performance issue (asynchronous IO).
|
* Check Ethernet card
|
||||||
|
* Check load average
|
||||||
## MySQL Storage engine general information
|
|
||||||
|
## MySQLTuner Server version checks
|
||||||
* Get storage engine counts/stats
|
* EOL MySQL version check
|
||||||
* Check for DB engines that are enabled but unused
|
* Currently MySQL < 5.1 are considered EOL
|
||||||
* Look for fragmented tables
|
* Using 5.5+ version of MySQL for performance issue (asynchronous IO)
|
||||||
* Look for auto-increments near capacity
|
|
||||||
* Look for table with autoincrement with value near max capacity
|
## Mysql error log file analysis
|
||||||
|
* Look for potential current error log file name
|
||||||
## MySQLTuner security checks
|
* Check permission on error log file
|
||||||
|
* Check size on error log file
|
||||||
* Is anonymous user present?
|
* Check error and warning on error log file
|
||||||
* Users without passwords
|
* Find last start and shutdown on error log file
|
||||||
* Users w/username as password
|
|
||||||
* Users w/o host restriction
|
## MySQL Storage engine general information
|
||||||
* Weak password check (possibly using cracklib later?)
|
|
||||||
* Using basic_passwords.txt as password database
|
* Get storage engine counts/stats
|
||||||
* Password list checks can be avoid (option: --skippassword)
|
* Check for DB engines that are enabled but unused
|
||||||
|
* Look for fragmented tables
|
||||||
## MySQLTuner CVE vulnerabilities detection
|
* Look for auto-increments near capacity
|
||||||
|
* Look for tables with auto-increment with value near max capacity
|
||||||
* option: --cvefile
|
|
||||||
* Check if your MariaDB or MySQL version contains CVE bulletins.
|
## MySQLTuner security checks
|
||||||
|
|
||||||
## MySQLTuner database information
|
* Is anonymous user present?
|
||||||
* Performance analysis parameter checks
|
* Users without passwords
|
||||||
* Per database information
|
* Users with username as password
|
||||||
* Tables number
|
* Users without host restriction
|
||||||
* Rows number
|
* Weak password check (possibly using cracklib later?)
|
||||||
* Total size
|
* Using basic_passwords.txt as password database
|
||||||
* Data size
|
* Password list checks can be avoided (option: --skippassword)
|
||||||
* Percentage of data size
|
|
||||||
* Index size
|
## MySQLTuner CVE vulnerabilities detection
|
||||||
* Percentage of index size
|
|
||||||
* Collation number
|
* option: --cvefile
|
||||||
* Check that there is only one collation for all table in a database
|
* Check if your MariaDB or MySQL version contains CVE entries.
|
||||||
* Check that there is only one collation for ll table columns in a database
|
|
||||||
* Check that there is only one storage engine per user database
|
## MySQLTuner database information
|
||||||
|
* Performance analysis parameter checks
|
||||||
|
* Per database information
|
||||||
## MySQLTuner index information
|
* Tables number
|
||||||
|
* Rows number
|
||||||
* Top 10 worth selectivity index
|
* Total size
|
||||||
* Per index information
|
* Data size
|
||||||
* Index Cardinality
|
* Percentage of data size
|
||||||
* Index Selectivity
|
* Index size
|
||||||
* Misc information about index definition
|
* Percentage of index size
|
||||||
* Misc information about index size
|
* Collation number
|
||||||
|
* Check that there is only one collation for all tables in database
|
||||||
## MySQLTuner Connections information
|
* Check that there is only one collation for all table columns in database
|
||||||
|
* Check that there is only one storage engine per user database
|
||||||
* Highest usage of available connections
|
|
||||||
* Percentage of used connections (<85%)
|
|
||||||
* Percentage of aborted connections (<3%)
|
## MySQLTuner index information
|
||||||
|
|
||||||
## MySQLTuner server information
|
* Top 10 worth selectivity index
|
||||||
|
* Per index information
|
||||||
* Uptime: If MySQL started within last 24 hours
|
* Index Cardinality
|
||||||
* Bytes received and sent
|
* Index Selectivity
|
||||||
* Number of connections
|
* Misc information about index definition
|
||||||
* Percentage between reads and writes
|
* Misc information about index size
|
||||||
* Is binary log activated ?
|
|
||||||
* Is GTID mode activated ?
|
## MySQLTuner Connections information
|
||||||
|
|
||||||
## MySQLTuner sort, join and temp table information
|
* Highest usage of available connections
|
||||||
* Max memory temporary table size allowed.
|
* Percentage of used connections (<85%)
|
||||||
* Percentage of sort using temporary table (<10%)
|
* Percentage of aborted connections (<3%)
|
||||||
* Number of join performed without using indexes (<250)
|
|
||||||
* Percentage of temporary table written on disk(<25%)
|
## MySQLTuner server information
|
||||||
* Thread cache (=4)
|
|
||||||
* Thread cache hit ratio (>50%) if thread_handling is different of pools-of-threads
|
* Uptime: whether MySQL started within last 24 hours
|
||||||
* Table cache hit ratio(>2°%)
|
* Bytes received and sent
|
||||||
* Percentage of open file and open file limit(<85%)
|
* Number of connections
|
||||||
* Percentage of table locks (<95%)
|
* Percentage between reads and writes
|
||||||
* Percentage of binlog cache lock (<90%)
|
* Is binary log activated?
|
||||||
|
* Is GTID mode activated?
|
||||||
## MySQLTuner global buffer information
|
|
||||||
|
## MySQLTuner sort, join and temp table information
|
||||||
* Key Buffer
|
|
||||||
* Max Tmp Table
|
* Max memory temporary table size allowed.
|
||||||
* Per Thread Buffer
|
* Percentage of sort using temporary table (<10%)
|
||||||
* Read Buffer
|
* Number of join performed without using indexes (<250)
|
||||||
* Read RND Buffer
|
* Percentage of temporary table written on disk (<25%)
|
||||||
* Sort Buffer
|
* Thread cache (=4)
|
||||||
* Thread stack
|
* Thread cache hit ratio (>50%) if thread_handling is different of pools-of-threads
|
||||||
* Join Buffer
|
* Table cache hit ratio (>2°%)
|
||||||
* Binlog Cache Buffers size if activated
|
* Table cache definition should be upper that total number of tables or in autoresizing mode
|
||||||
|
* Percentage of open file and open file limit (<85%)
|
||||||
## MySQLTuner query cache checks
|
* Percentage of table locks (<95%)
|
||||||
|
* Percentage of binlog cache lock (<90%)
|
||||||
* Is Query cache activated ?
|
|
||||||
* Query Cache Buffers
|
## MySQLTuner global buffer information
|
||||||
* Query Cache DISABLED, ALL REQUEST or ON DEMAND
|
|
||||||
* Query Cache Size
|
* Key Buffer
|
||||||
* Query cache hit ratio (cache efficiency)
|
* Max Tmp Table
|
||||||
|
* Per Thread Buffer
|
||||||
## MySQLTuner memory checks
|
* Read Buffer
|
||||||
|
* Read RND Buffer
|
||||||
* Get total RAM/swap
|
* Sort Buffer
|
||||||
* Is there enough memory for max connections reached by MySQL ?
|
* Thread stack
|
||||||
* Is there enough memory for max connections allowed by MySQL ?
|
* Join Buffer
|
||||||
* Max percentage of memory used(<85%)
|
* Binlog Cache Buffers size if activated
|
||||||
|
|
||||||
## MySQLTuner slow queries checks
|
## MySQLTuner query cache checks
|
||||||
|
|
||||||
* Percentage of Slow queries (<5%)
|
* Is Query cache activated?
|
||||||
|
* Query Cache Buffers
|
||||||
## MySQLTuner replication checks
|
* Query Cache DISABLED, ALL REQUEST or ON DEMAND
|
||||||
|
* Query Cache Size
|
||||||
* Is server replication configured as slave ?
|
* Query cache hit ratio (cache efficiency)
|
||||||
* SQL replication thread running ?
|
|
||||||
* IO replication thread running ?
|
## MySQLTuner memory checks
|
||||||
* Replication lag in seconds (Seconds_behind_master)
|
|
||||||
* Is Slave configured in read only ?
|
* Get total RAM/swap
|
||||||
* replication type ROW, MIX, STMT
|
* Is there enough memory for max connections reached by MySQL?
|
||||||
* replication Semisync master
|
* Is there enough memory for max connections allowed by MySQL?
|
||||||
* replication Semisync slave
|
* Max percentage of memory used (<85%)
|
||||||
* XA support activated
|
|
||||||
* replication started ?
|
## MySQLTuner slow queries checks
|
||||||
|
|
||||||
## MySQLTuner InnoDB information
|
* Percentage of Slow queries (<5%)
|
||||||
|
|
||||||
* InnoDB Buffer Pool Size
|
## MySQLTuner replication checks
|
||||||
* If possible, innodb_buffer_pool_size should be greater data and index size for Innodb Table
|
|
||||||
* Innodb_buffer_pool_size should around 75 to 80 % of the available system memory.
|
* Is server replication configured as slave?
|
||||||
* InnoDB Buffer Pool Instances
|
* SQL replication thread running?
|
||||||
* MySQL needs 1 instance per 1Go of Buffer Pool
|
* IO replication thread running?
|
||||||
* innodb_buffer_pool instances = round(innodb_buffer_pool_size / 1Go)
|
* Replication lag in seconds (Seconds_behind_master)
|
||||||
* innodb_buffer_pool instances must be equals or lower than 64
|
* Is Slave configured in read only?
|
||||||
|
* Replication type ROW, MIX, STMT
|
||||||
- A bug in MySQL 5.6 causes SHOW VARIABLES to report an innodb_buffer_pool_instances value of 8 when innodb_buffer_pool_size is less than 1GB and only one buffer pool instance is present (Bug #18343670).
|
* Replication Semisync master
|
||||||
|
* Replication Semisync slave
|
||||||
* InnoDB Buffer Pool Usage
|
* XA support activated
|
||||||
* If more than 20% of InnoDB buffer pool is not used, MySQLTuner raise an alert.
|
* Replication started?
|
||||||
* InnoDB Buffer Pool Log Size
|
|
||||||
* InnoDB total log file size should be 25% of innodb_buffer_pool_size
|
## MySQLTuner InnoDB information
|
||||||
* InnoDB Read efficiency
|
|
||||||
* Ratio of read without locks
|
* InnoDB Buffer Pool Size
|
||||||
* InnoDB Write efficiency
|
* If possible, innodb_buffer_pool_size should be greater than data and index size for Innodb Table
|
||||||
* Ratio of write without locks
|
* Innodb_buffer_pool_size should be around 75% to 80% of the available system memory.
|
||||||
* InnoDB Log Waits
|
* InnoDB Buffer Pool Instances
|
||||||
* Checks that no lock is used on Innodb Log.
|
* MySQL needs 1 instance per 1Go of Buffer Pool
|
||||||
* InnoDB Chunk Size
|
* innodb_buffer_pool instances = round(innodb_buffer_pool_size / 1Go)
|
||||||
* Check InnoDB Buffer Pool size is a multiple of InnoDB Buffer Pool chunk size * InnoDB Buffer Pool instances
|
* innodb_buffer_pool instances must be equal to or lower than 64
|
||||||
|
|
||||||
## MySQLTuner ARIADB information
|
- A bug in MySQL 5.6 causes SHOW VARIABLES to report an innodb_buffer_pool_instances value of 8 when innodb_buffer_pool_size is less than 1GB and only one buffer pool instance is present (Bug #18343670).
|
||||||
|
|
||||||
* Is Aria indexes size is greater than page cache size ?
|
* InnoDB Buffer Pool Usage
|
||||||
* Page cache read hit ratio (>95%)
|
* If more than 20% of InnoDB buffer pool is not used, raise an alert.
|
||||||
* Page cache write hit ratio (>95%)
|
* InnoDB Buffer Pool Log Size
|
||||||
|
* InnoDB total log file size should be 25% of innodb_buffer_pool_size
|
||||||
|
* InnoDB Read efficiency
|
||||||
## MySQLTuner MYISAM information
|
* Ratio of read without locks
|
||||||
|
* InnoDB Write efficiency
|
||||||
* Key buffer usage (>90%)
|
* Ratio of write without locks
|
||||||
* Is MyISAM indexes size is greater than key buffer size ?
|
* InnoDB Log Waits
|
||||||
* Key buffer read hit ratio (>95%)
|
* Checks that no lock is used on Innodb Log.
|
||||||
* Key buffer write hit ratio (>95%)
|
* InnoDB Chunk Size
|
||||||
|
* Check InnoDB Buffer Pool size is a multiple of InnoDB Buffer Pool chunk size * InnoDB Buffer Pool instances
|
||||||
## MySQLTuner Galera information
|
|
||||||
* wsrep_ready cluster is ready
|
## MySQLTuner AriaDB information
|
||||||
* wsrep_connected node is connected to other nodes
|
|
||||||
* wsrep_cluster_name is defined.
|
* Is Aria indexes size greater than page cache size?
|
||||||
* wsrep_node_name is defined.
|
* Page cache read hit ratio (>95%)
|
||||||
* Check thet notification script wsrep_notify_cmd is defined
|
* Page cache write hit ratio (>95%)
|
||||||
* wsrep_cluster_status PRIMARY /NON PRIMARY.
|
|
||||||
* PRIMARY : Coherent cluster
|
|
||||||
* NO PRIMARY : cluster gets several states
|
## MySQLTuner MyISAM information
|
||||||
* wsrep_ local_state_comment: Node state
|
|
||||||
* SYNCED (uptodate),
|
* Key buffer usage (>90%)
|
||||||
* DONOR(sending information to another node)
|
* Is MyISAM indexes size is greater than key buffer size ?
|
||||||
* Joiner(Try to reach cluster group)
|
* Key buffer read hit ratio (>95%)
|
||||||
* SYNCED state able to read/write
|
* Key buffer write hit ratio (>95%)
|
||||||
* wsrep_cluster_conf_id configuration level must be identical in all nodes
|
|
||||||
* wsrep_slave_thread is between 3 or 4 times number of CPU core.
|
## MySQLTuner Galera information
|
||||||
* gcs.limit should be equal to wsrep_slave_threads * 5
|
|
||||||
* gcs.fc_factor should be equal to 0.8
|
* wsrep_ready cluster is ready
|
||||||
* Flow control fraction should be lower than 0.02 (wsrep_flow_control_paused < 0.02)
|
* wsrep_connected node is connected to other nodes
|
||||||
* wsrep_last_commited committed level must be identical in all nodes
|
* wsrep_cluster_name is defined.
|
||||||
* Look for tables without primary keys
|
* wsrep_node_name is defined.
|
||||||
* Look for non InnoDB tables for Galera
|
* Check thet notification script wsrep_notify_cmd is defined
|
||||||
* Variable innodb_flush_log_at_trx_commit should be set to 0.
|
* wsrep_cluster_status PRIMARY /NON PRIMARY.
|
||||||
* Check that there is 3 or 5 members in Galera cluster.
|
* PRIMARY : Coherent cluster
|
||||||
* Check that xtrabackup is used for SST method with wsrep_sst_method variable.
|
* NO PRIMARY : cluster gets several states
|
||||||
* Check variables wsrep_OSU_method is defined to TOI for updates.
|
* wsrep_ local_state_comment: Node state
|
||||||
* Check that there is no certification failures controlling wsrep_local_cert_failures status.
|
* SYNCED (uptodate),
|
||||||
|
* DONOR (sending information to another node)
|
||||||
## MySQLTuner TokuDB information
|
* Joiner (try to reach cluster group)
|
||||||
|
* SYNCED state able to read/write
|
||||||
* tokudb_cache_size
|
* wsrep_cluster_conf_id configuration level must be identical in all nodes
|
||||||
* tokudb_directio
|
* wsrep_slave_thread is between 3 or 4 times number of CPU core.
|
||||||
* tokudb_empty_scan
|
* gcs.limit should be equal to wsrep_slave_threads * 5
|
||||||
* tokudb_read_block_size
|
* gcs.fc_factor should be equal to 0.8
|
||||||
* tokudb_commit_sync
|
* Flow control fraction should be lower than 0.02 (wsrep_flow_control_paused < 0.02)
|
||||||
* tokudb_checkpointing_period
|
* wsrep_last_commited committed level must be identical in all nodes
|
||||||
* tokudb_block_size
|
* Look for tables without primary keys
|
||||||
* tokudb_cleaner_iterations
|
* Look for non InnoDB tables for Galera
|
||||||
* tokudb_fanout
|
* Variable innodb_flush_log_at_trx_commit should be set to 0.
|
||||||
|
* Check that there are 3 or 5 members in Galera cluster.
|
||||||
## MySQLTuner XtraDB information
|
* Check that xtrabackup is used for SST method with wsrep_sst_method variable.
|
||||||
|
* Check variables wsrep_OSU_method is defined to TOI for updates.
|
||||||
* Nothing for the moment
|
* Check that there is no certification failures controlling wsrep_local_cert_failures status.
|
||||||
|
|
||||||
## MySQLTuner Connect information
|
## MySQLTuner TokuDB information
|
||||||
|
|
||||||
* Nothing for the moment
|
* tokudb_cache_size
|
||||||
|
* tokudb_directio
|
||||||
## MySQLTuner Spider information
|
* tokudb_empty_scan
|
||||||
|
* tokudb_read_block_size
|
||||||
* Nothing for the moment
|
* tokudb_commit_sync
|
||||||
|
* tokudb_checkpointing_period
|
||||||
## MySQLTuner RocksDb information
|
* tokudb_block_size
|
||||||
|
* tokudb_cleaner_iterations
|
||||||
* Nothing for the moment
|
* tokudb_fanout
|
||||||
|
|
||||||
## MySQLTuner Thread pool information
|
## MySQLTuner XtraDB information
|
||||||
|
|
||||||
* thread_pool_size between 16 to 36 for Innodb usage
|
* Not implemented
|
||||||
* thread_pool_size between 4 to 8 for MyIsam usage
|
|
||||||
|
## MySQLTuner Connect information
|
||||||
## MySQLTuner performance schema and sysschema information
|
|
||||||
* Check that Performance schema is activated for 5.6+ version
|
* Not implemented
|
||||||
* Check that Performance schema is deactivated for 5.5- version
|
|
||||||
* Check that Sys schema is installed
|
## MySQLTuner Spider information
|
||||||
* sys Schema version
|
|
||||||
* Top user per connection
|
* Not implemented
|
||||||
* Top user per statement
|
|
||||||
* Top user per statement latency
|
## MySQLTuner RocksDb information
|
||||||
* Top user per lock latency
|
|
||||||
* Top user per full scans
|
* Not implemented
|
||||||
* Top user per row_sent
|
|
||||||
* Top user per row modified
|
## MySQLTuner Thread pool information
|
||||||
* Top user per io
|
|
||||||
* Top user per io latency
|
* thread_pool_size between 16 to 36 for Innodb usage
|
||||||
* Top host per connection
|
* thread_pool_size between 4 to 8 for MyISAM usage
|
||||||
* Top host per statement
|
|
||||||
* Top host per statement latency
|
## MySQLTuner performance schema and sysschema information
|
||||||
* Top host per lock latency
|
|
||||||
* Top host per full scans
|
* Check that Performance schema is activated for 5.6+ version
|
||||||
* Top host per rows sent
|
* Check that Performance schema is deactivated for 5.5- version
|
||||||
* Top host per rows modified
|
* Check that Sys schema is installed
|
||||||
* Top host per io
|
* Sys Schema version
|
||||||
* Top 5 host per io latency
|
* Top user per connection
|
||||||
* Top IO type order by total io
|
* Top user per statement
|
||||||
* Top IO type order by total latency
|
* Top user per statement latency
|
||||||
* Top IO type order by max latency
|
* Top user per lock latency
|
||||||
* Top Stages order by total io
|
* Top user per full scans
|
||||||
* Top Stages order by total latency
|
* Top user per row_sent
|
||||||
* Top Stages order by avg latency
|
* Top user per row modified
|
||||||
* Top host per table scans
|
* Top user per io
|
||||||
* InnoDB Buffer Pool by schema
|
* Top user per io latency
|
||||||
* InnoDB Buffer Pool by table
|
* Top host per connection
|
||||||
* Process per allocated memory
|
* Top host per statement
|
||||||
* InnoDB Lock Waits
|
* Top host per statement latency
|
||||||
* Threads IO Latency
|
* Top host per lock latency
|
||||||
* High Cost SQL statements
|
* Top host per full scans
|
||||||
* Top 5% slower queries
|
* Top host per rows sent
|
||||||
* Top 10 nb statement type
|
* Top host per rows modified
|
||||||
* Top statement by total latency
|
* Top host per io
|
||||||
* Top statement by lock latency
|
* Top 5 host per io latency
|
||||||
* Top statement by full scans
|
* Top IO type order by total io
|
||||||
* Top statement by rows sent
|
* Top IO type order by total latency
|
||||||
* Top statement by rows modified
|
* Top IO type order by max latency
|
||||||
* Use temporary tables
|
* Top Stages order by total io
|
||||||
* Unused Indexes
|
* Top Stages order by total latency
|
||||||
* Full table scans
|
* Top Stages order by avg latency
|
||||||
* Latest file IO by latency
|
* Top host per table scans
|
||||||
* File by IO read bytes
|
* InnoDB Buffer Pool by schema
|
||||||
* File by IO written bytes
|
* InnoDB Buffer Pool by table
|
||||||
* File per IO total latency
|
* Process per allocated memory
|
||||||
* File per IO read latency
|
* InnoDB Lock Waits
|
||||||
* File per IO write latency
|
* Threads IO Latency
|
||||||
* Event Wait by read bytes
|
* High Cost SQL statements
|
||||||
* Event Wait by write bytes
|
* Top 5% slower queries
|
||||||
* Event per wait total latency
|
* Top 10 nb statement type
|
||||||
* Event per wait read latency
|
* Top statement by total latency
|
||||||
* Event per wait write latency
|
* Top statement by lock latency
|
||||||
* TOP 15 most read indexes
|
* Top statement by full scans
|
||||||
* TOP 15 most modified indexes
|
* Top statement by rows sent
|
||||||
* TOP 15 high select latency index
|
* Top statement by rows modified
|
||||||
* TOP 15 high insert latency index
|
* Use temporary tables
|
||||||
* TOP 15 high update latency index
|
* Unused Indexes
|
||||||
* TOP 15 high delete latency index
|
* Full table scans
|
||||||
* TOP 15 most read tables
|
* Latest file IO by latency
|
||||||
* TOP 15 most modified tables
|
* File by IO read bytes
|
||||||
* TOP 15 high select latency tables
|
* File by IO written bytes
|
||||||
* TOP 15 high insert latency tables
|
* File per IO total latency
|
||||||
* TOP 15 high update latency tables
|
* File per IO read latency
|
||||||
* TOP 15 high delete latency tables
|
* File per IO write latency
|
||||||
* Redundant indexes
|
* Event Wait by read bytes
|
||||||
* Tables not using InnoDb buffer
|
* Event Wait by write bytes
|
||||||
* Top 15 Tables using InnoDb buffer
|
* Event per wait total latency
|
||||||
* Top 15 Tables with InnoDb buffer free
|
* Event per wait read latency
|
||||||
* Top 15 Most executed queries
|
* Event per wait write latency
|
||||||
* Latest SQL queries in errors or warnings
|
* Top 15 most read indexes
|
||||||
* Top 20 queries with full table scans
|
* Top 15 most modified indexes
|
||||||
* TOP 15 reader queries (95% percentile)
|
* Top 15 high select latency index
|
||||||
* TOP 15 row look queries (95% percentile)
|
* Top 15 high insert latency index
|
||||||
* TOP 15 total latency queries (95% percentile)
|
* Top 15 high update latency index
|
||||||
* TOP 15 max latency queries (95% percentile)
|
* Top 15 high delete latency index
|
||||||
* TOP 15 average latency queries (95% percentile)
|
* Top 15 most read tables
|
||||||
* Top 20 queries with sort
|
* Top 15 most modified tables
|
||||||
* Last 50 queries with sort
|
* Top 15 high select latency tables
|
||||||
* TOP 15 row sorting queries with sort
|
* Top 15 high insert latency tables
|
||||||
* TOP 15 total latency queries with sort
|
* Top 15 high update latency tables
|
||||||
* TOP 15 merge queries with sort
|
* Top 15 high delete latency tables
|
||||||
* TOP 15 average sort merges queries with sort
|
* Redundant indexes
|
||||||
* TOP 15 scans queries with sort
|
* Tables not using InnoDb buffer
|
||||||
* TOP 15 range queries with sort
|
* Top 15 Tables using InnoDb buffer
|
||||||
* Top 20 queries with temp table
|
* Top 15 Tables with InnoDb buffer free
|
||||||
* Last 50 queries with temp table
|
* Top 15 Most executed queries
|
||||||
* TOP 15 total latency queries with temp table
|
* Latest SQL queries in errors or warnings
|
||||||
* TOP 15 queries with temp table to disk
|
* Top 20 queries with full table scans
|
||||||
* TOP 15 class events by number
|
* Top 15 reader queries (95% percentile)
|
||||||
* TOP 30 events by number
|
* Top 15 row look queries (95% percentile)
|
||||||
* TOP 15 class events by total latency
|
* Top 15 total latency queries (95% percentile)
|
||||||
* TOP 30 events by total latency
|
* Top 15 max latency queries (95% percentile)
|
||||||
* TOP 15 class events by max latency
|
* Top 15 average latency queries (95% percentile)
|
||||||
* TOP 30 events by max latency
|
* Top 20 queries with sort
|
||||||
|
* Last 50 queries with sort
|
||||||
|
* Top 15 row sorting queries with sort
|
||||||
|
* Top 15 total latency queries with sort
|
||||||
|
* Top 15 merge queries with sort
|
||||||
|
* Top 15 average sort merges queries with sort
|
||||||
|
* Top 15 scans queries with sort
|
||||||
|
* Top 15 range queries with sort
|
||||||
|
* Top 20 queries with temp table
|
||||||
|
* Last 50 queries with temp table
|
||||||
|
* Top 15 total latency queries with temp table
|
||||||
|
* Top 15 queries with temp table to disk
|
||||||
|
* Top 15 class events by number
|
||||||
|
* Top 30 events by number
|
||||||
|
* Top 15 class events by total latency
|
||||||
|
* Top 30 events by total latency
|
||||||
|
* Top 15 class events by max latency
|
||||||
|
* Top 30 events by max latency
|
||||||
|
|
0
JenkinsFile
Normal file
0
JenkinsFile
Normal file
90
Makefile
Normal file
90
Makefile
Normal file
|
@ -0,0 +1,90 @@
|
||||||
|
VERSION=$(shell grep '\- Version ' mysqltuner.pl | awk '{ print $$NF}')
|
||||||
|
UPDATE_SUB_VERSION=$(shell echo $(VERSION) | awk -F. '{ print $$1"."$$2"."$$3+1 }')
|
||||||
|
UPDATE_MINOR_VERSION=$(shell echo $(VERSION) | awk -F. '{ print $$1"."$$2+1".0" }')
|
||||||
|
UPDATE_MAJOR_VERSION=$(shell echo $(VERSION) | awk -F. '{ print $$1+1".0.0" }')
|
||||||
|
|
||||||
|
all: generate_cve generate_features generate_usage tidy increment_sub_version
|
||||||
|
|
||||||
|
help:
|
||||||
|
@echo "Usage: make <target>"
|
||||||
|
@echo " help: Show this help"
|
||||||
|
@echo " generate_usage: Generate USAGE.md"
|
||||||
|
@echo " generate_cve: Generate vulnerabilities.csv"
|
||||||
|
@echo " generate_features: Generate FEATURES.md"
|
||||||
|
@echo " tidy: Tidy mysqltuner.pl"
|
||||||
|
@echo " installdep_debian: Install dependencies on Debian"
|
||||||
|
@echo " increment_sub_version: Increment sub version"
|
||||||
|
@echo " increment_minor_version: Increment minor version"
|
||||||
|
@echo " increment_major_version: Increment major version"
|
||||||
|
@echo " push: Push to GitHub"
|
||||||
|
|
||||||
|
|
||||||
|
installdep_debian:
|
||||||
|
sudo apt install -y cpanminus libpod-markdown-perl libwww-mechanize-gzip-perl perltidy dos2unix
|
||||||
|
sudo cpanm File::Util
|
||||||
|
curl -sL https://raw.githubusercontent.com/slimtoolkit/slim/master/scripts/install-slim.sh | sudo -E bash -
|
||||||
|
|
||||||
|
tidy:
|
||||||
|
dos2unix ./mysqltuner.pl
|
||||||
|
perltidy -b ./mysqltuner.pl
|
||||||
|
git add ./mysqltuner.pl
|
||||||
|
git commit -m "Indenting mysqltuner at $(shell date --iso=seconds)"
|
||||||
|
|
||||||
|
generate_usage:
|
||||||
|
pod2markdown mysqltuner.pl >USAGE.md
|
||||||
|
git add ./USAGE.md
|
||||||
|
git commit -m "Generate USAGE.md at $(shell date --iso=seconds)"
|
||||||
|
|
||||||
|
generate_cve:
|
||||||
|
perl ./build/updateCVElist.pl
|
||||||
|
git add ./vulnerabilities.csv
|
||||||
|
git commit -m "Generate CVE list at $(shell date --iso=seconds)"
|
||||||
|
|
||||||
|
generate_version_file:
|
||||||
|
rm -f CURRENT_VERSION.txt
|
||||||
|
grep "# mysqltuner.pl - Version" ./mysqltuner.pl | awk '{ print $$NF}' > CURRENT_VERSION.txt
|
||||||
|
|
||||||
|
generate_features:
|
||||||
|
perl ./build/genFeatures.sh
|
||||||
|
git add ./FEATURES.md
|
||||||
|
git commit -m "Generate FEATURES.md at $(shell date --iso=seconds)"
|
||||||
|
|
||||||
|
increment_sub_version:
|
||||||
|
@echo "Incrementing sub version from $(VERSION) to $(UPDATE_SUB_VERSION)"
|
||||||
|
sed -i "s/$(VERSION)/$(UPDATE_SUB_VERSION)/" mysqltuner.pl *.md .github/workflows/*.yml
|
||||||
|
git add ./*.md ./mysqltuner.pl
|
||||||
|
git commit -m "Generate $(UPDATE_SUB_VERSION) sub version at $(shell date --iso=seconds)"
|
||||||
|
git tag -a v$(UPDATE_SUB_VERSION) -m "Generate $(UPDATE_SUB_VERSION) sub version at $(shell date --iso=seconds)"
|
||||||
|
git push --tags
|
||||||
|
|
||||||
|
increment_minor_version:
|
||||||
|
@echo "Incrementing minor version from $(VERSION) to $(UPDATE_MINOR_VERSION)"
|
||||||
|
sed -i "s/$(VERSION)/$(UPDATE_MINOR_VERSION)/" mysqltuner.pl *.md .github/workflows/*.yml
|
||||||
|
git add ./*.md ./mysqltuner.pl
|
||||||
|
git commit -m "Generate $(UPDATE_MINOR_VERSION) minor version at $(shell date --iso=seconds)"
|
||||||
|
git tag -a v$(UPDATE_MINOR_VERSION) -m "Generate $(UPDATE_MINOR_VERSION) minor version at $(shell date --iso=seconds)"
|
||||||
|
git push --tags
|
||||||
|
|
||||||
|
increment_major_version:
|
||||||
|
@echo "Incrementing major version from $(VERSION) to $(UPDATE_MAJOR_VERSION)"
|
||||||
|
sed -i "s/$(VERSION)/$(UPDATE_MAJOR_VERSION)/" mysqltuner.pl *.md .github/workflows/*.yml
|
||||||
|
git add ./*.md ./mysqltuner.pl
|
||||||
|
git commit -m "Generate $(UPDATE_SUB_VERSION) major version at $(shell date --iso=seconds)"
|
||||||
|
git tag -a v$(UPDATE_MINOR_VERSION) -m "Generate $(UPDATE_MAJOR_VERSION) major version at $(shell date --iso=seconds)"
|
||||||
|
git push --tags
|
||||||
|
|
||||||
|
docker_build:
|
||||||
|
docker build . -t jmrenouard/mysqltuner:latest -t jmrenouard/mysqltuner:$(VERSION)
|
||||||
|
|
||||||
|
docker_slim:
|
||||||
|
docker run --rm -it --privileged -v /var/run/docker.sock:/var/run/docker.sock -v $(PWD):/root/app -w /root/app jmrenouard/mysqltuner:latest slim build
|
||||||
|
|
||||||
|
docker_push: docker_build
|
||||||
|
bash build/publishtodockerhub.sh $(VERSION)
|
||||||
|
|
||||||
|
|
||||||
|
push:
|
||||||
|
git push
|
||||||
|
|
||||||
|
pull:
|
||||||
|
git pull
|
472
README.fr.md
472
README.fr.md
|
@ -1,236 +1,236 @@
|
||||||
MySQLTuner-perl
|

|
||||||
====
|
|
||||||
[](https://travis-ci.org/major/MySQLTuner-perl)
|
[](https://www.buymeacoffee.com/jmrenouard)
|
||||||
[](http://opensource.box.com/badges)
|
|
||||||
[](http://opensource.box.com/badges)
|
[](http://opensource.box.com/badges)
|
||||||
[](http://isitmaintained.com/project/major/MySQLTuner-perl "Average time to resolve an issue")
|
[](http://opensource.box.com/badges)
|
||||||
[](http://isitmaintained.com/project/major/MySQLTuner-perl "Percentage of issues still open")
|
[](http://isitmaintained.com/project/major/MySQLTuner-perl "Average time to resolve an issue")
|
||||||
[](https://opensource.org/licenses/GPL-3.0/)
|
[](http://isitmaintained.com/project/major/MySQLTuner-perl "Percentage of issues still open")
|
||||||
|
[](https://opensource.org/licenses/GPL-3.0/)
|
||||||
**MySQLTuner** est un script écrit en Perl qui permet d'effectuer une revue de configuration pour MySQL/MAriaDB/PerconaDB rapidement et propose des ajustements pour améliorer la performance et la stabilité du serveur. L'état des variables et statuts est analysé et présenté de manière synthétique et structurée ainsi que plusieurs suggestions basiques concernant la performance.
|
|
||||||
|
**MySQLTuner** est un script écrit en Perl qui permet d'effectuer une revue de configuration pour MySQL/MAriaDB/PerconaDB rapidement et propose des ajustements pour améliorer la performance et la stabilité du serveur. L'état des variables et statuts est analysé et présenté de manière synthétique et structurée ainsi que plusieurs suggestions basiques concernant la performance.
|
||||||
**MySQLTuner** supporte dans a dernière version plus de ~300 indicators pour MySQL/MariaDB/Percona Server.
|
|
||||||
|
**MySQLTuner** supporte dans a dernière version plus de ~300 indicators pour MySQL/MariaDB/Percona Server.
|
||||||
**MySQLTuner** is maintained and indicator collect is increasing week after week supporting a lot of configuration sush as , , , Linux OS metrics, , , , ...
|
|
||||||
|
**MySQLTuner** is maintained and indicator collect is increasing week after week supporting a lot of configuration sush as , , , Linux OS metrics, , , , ...
|
||||||
You can found more details on this indicators
|
|
||||||
.
|
You can found more details on this indicators
|
||||||
|
.
|
||||||
|
|
||||||

|
|
||||||
|

|
||||||
MySQLTuner needs you:
|
|
||||||
===
|
MySQLTuner needs you:
|
||||||
|
===
|
||||||
**MySQLTuner** needs contributors for documentation, code and feedbacks..
|
|
||||||
|
**MySQLTuner** needs contributors for documentation, code and feedbacks..
|
||||||
* Please join us on issue track at [GitHub tracker](https://github.com/major/MySQLTuner-perl/issues)</a>.
|
|
||||||
* Contribution guide is avalaible following [MySQLTuner contributing guide](https://github.com/major/MySQLTuner-perl/blob/master/CONTRIBUTING.md)
|
* Please join us on issue track at [GitHub tracker](https://github.com/major/MySQLTuner-perl/issues)</a>.
|
||||||
* Star **MySQLTuner project** at [MySQLTuner Git Hub Project](https://github.com/major/MySQLTuner-perl)
|
* Contribution guide is avalaible following [MySQLTuner contributing guide](https://github.com/major/MySQLTuner-perl/blob/master/CONTRIBUTING.md)
|
||||||
|
* Star **MySQLTuner project** at [MySQLTuner Git Hub Project](https://github.com/major/MySQLTuner-perl)
|
||||||
Compatibility:
|
|
||||||
====
|
Compatibility:
|
||||||
|
====
|
||||||
* MySQL 5.7 (full support)
|
|
||||||
* MySQL 5.6 (full support)
|
* MySQL 5.7 (full support)
|
||||||
* MySQL 5.5 (full support)
|
* MySQL 5.6 (full support)
|
||||||
* MariaDB 10.1 (full support)
|
* MySQL 5.5 (full support)
|
||||||
* MariaDB 10.0 (full support)
|
* MariaDB 10.1 (full support)
|
||||||
* Percona Server 5.6 (full support)
|
* MariaDB 10.0 (full support)
|
||||||
* Percona XtraDB cluster (full support)
|
* Percona Server 5.6 (full support)
|
||||||
* MySQL 3.23, 4.0, 4.1, 5.0, 5.1 (partial support - deprecated version)
|
* Percona XtraDB cluster (full support)
|
||||||
* Perl 5.6 or later (with [perl-doc](http://search.cpan.org/~dapm/perl-5.14.4/pod/perldoc.pod) package)
|
* MySQL 3.23, 4.0, 4.1, 5.0, 5.1 (partial support - deprecated version)
|
||||||
* Unix/Linux based operating system (tested on Linux, BSD variants, and Solaris variants)
|
* Perl 5.6 or later (with [perl-doc](http://search.cpan.org/~dapm/perl-5.14.4/pod/perldoc.pod) package)
|
||||||
* Windows is not supported at this time (Help wanted !!!!!)
|
* Unix/Linux based operating system (tested on Linux, BSD variants, and Solaris variants)
|
||||||
* Unrestricted read access to the MySQL server (OS root access recommended for MySQL < 5.1)
|
* Windows is not supported at this time (Help wanted !!!!!)
|
||||||
* CVE vulnerabilites detection support from [https://cve.mitre.org](https://cve.mitre.org)
|
* Unrestricted read access to the MySQL server (OS root access recommended for MySQL < 5.1)
|
||||||
|
* CVE vulnerabilites detection support from [https://cve.mitre.org](https://cve.mitre.org)
|
||||||
***WARNING***
|
|
||||||
--
|
***WARNING***
|
||||||
It is **extremely important** for you to fully understand each change
|
--
|
||||||
you make to a MySQL database server. If you don't understand portions
|
It is **extremely important** for you to fully understand each change
|
||||||
of the script's output, or if you don't understand the recommendations,
|
you make to a MySQL database server. If you don't understand portions
|
||||||
**you should consult** a knowledgeable DBA or system administrator
|
of the script's output, or if you don't understand the recommendations,
|
||||||
that you trust. **Always** test your changes on staging environments, and
|
**you should consult** a knowledgeable DBA or system administrator
|
||||||
always keep in mind that improvements in one area can **negatively affect**
|
that you trust. **Always** test your changes on staging environments, and
|
||||||
MySQL in other areas.
|
always keep in mind that improvements in one area can **negatively affect**
|
||||||
|
MySQL in other areas.
|
||||||
**Seriously - please review the FAQ section below.**
|
|
||||||
|
**Seriously - please review the FAQ section below.**
|
||||||
What MySQLTuner is checking exactly ?
|
|
||||||
--
|
What MySQLTuner is checking exactly ?
|
||||||
All checks done by **MySQLTuner** are documented in [MySQLTuner Internals](https://github.com/major/MySQLTuner-perl/blob/master/INTERNALS.md) documentation.
|
--
|
||||||
|
All checks done by **MySQLTuner** are documented in [MySQLTuner Internals](https://github.com/major/MySQLTuner-perl/blob/master/INTERNALS.md) documentation.
|
||||||
Download/Installation
|
|
||||||
--
|
Download/Installation
|
||||||
|
--
|
||||||
You can download the entire repository by using 'git clone' followed by the cloning URL above. The simplest and shortest method is:
|
|
||||||
|
You can download the entire repository by using 'git clone' followed by the cloning URL above. The simplest and shortest method is:
|
||||||
wget http://mysqltuner.pl/ -O mysqltuner.pl
|
|
||||||
wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/basic_passwords.txt -O basic_passwords.txt
|
wget http://mysqltuner.pl/ -O mysqltuner.pl
|
||||||
wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/vulnerabilities.csv -O vulnerabilities.csv
|
wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/basic_passwords.txt -O basic_passwords.txt
|
||||||
perl mysqltuner.pl
|
wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/vulnerabilities.csv -O vulnerabilities.csv
|
||||||
|
perl mysqltuner.pl
|
||||||
Of course, you can add the execute bit (`chmod +x mysqltuner.pl`) so you can execute it without calling perl directly.
|
|
||||||
|
Of course, you can add the execute bit (`chmod +x mysqltuner.pl`) so you can execute it without calling perl directly.
|
||||||
Specific usage
|
|
||||||
--
|
Specific usage
|
||||||
|
--
|
||||||
__Usage:__ Minimal usage locally
|
|
||||||
|
__Usage:__ Minimal usage locally
|
||||||
perl mysqltuner.pl
|
|
||||||
|
perl mysqltuner.pl
|
||||||
__Usage:__ Minimal usage remotely
|
|
||||||
|
__Usage:__ Minimal usage remotely
|
||||||
perl mysqltuner.pl --host targetDNS_IP --user admin_user --pass admin_password
|
|
||||||
|
perl mysqltuner.pl --host targetDNS_IP --user admin_user --pass admin_password
|
||||||
__Usage:__ Enable maximum output information around MySQL/MariaDb without debugging
|
|
||||||
|
__Usage:__ Enable maximum output information around MySQL/MariaDb without debugging
|
||||||
perl mysqltuner.pl --verbose
|
|
||||||
perl mysqltuner.pl --buffers --dbstat --idxstat --sysstat --pfstat
|
perl mysqltuner.pl --verbose
|
||||||
|
perl mysqltuner.pl --buffers --dbstat --idxstat --sysstat --pfstat
|
||||||
|
|
||||||
__Usage:__ Enable CVE vulnerabilities check for your MariaDB or MySQL version
|
|
||||||
|
__Usage:__ Enable CVE vulnerabilities check for your MariaDB or MySQL version
|
||||||
perl mysqltuner.pl --cvefile=vulnerabilities.csv
|
|
||||||
|
perl mysqltuner.pl --cvefile=vulnerabilities.csv
|
||||||
__Usage:__ Write your result in a file with information displayed
|
|
||||||
|
__Usage:__ Write your result in a file with information displayed
|
||||||
perl mysqltuner.pl --outputfile /tmp/result_mysqltuner.txt
|
|
||||||
|
perl mysqltuner.pl --outputfile /tmp/result_mysqltuner.txt
|
||||||
__Usage:__ Write your result in a file **without outputting information**
|
|
||||||
|
__Usage:__ Write your result in a file **without outputting information**
|
||||||
perl mysqltuner.pl --silent --outputfile /tmp/result_mysqltuner.txt
|
|
||||||
|
perl mysqltuner.pl --silent --outputfile /tmp/result_mysqltuner.txt
|
||||||
__Usage:__ Using template model to customize your reporting file based on [Text::Template](https://metacpan.org/pod/Text::Template) syntax.
|
|
||||||
|
__Usage:__ Using template model to customize your reporting file based on [Text::Template](https://metacpan.org/pod/Text::Template) syntax.
|
||||||
perl mysqltuner.pl --silent --reportfile /tmp/result_mysqltuner.txt --template=/tmp/mymodel.tmpl
|
|
||||||
|
perl mysqltuner.pl --silent --reportfile /tmp/result_mysqltuner.txt --template=/tmp/mymodel.tmpl
|
||||||
__Usage:__ Enable debugging information
|
|
||||||
|
__Usage:__ Enable debugging information
|
||||||
perl mysqltuner.pl --debug
|
|
||||||
|
perl mysqltuner.pl --debug
|
||||||
FAQ
|
|
||||||
--
|
FAQ
|
||||||
|
--
|
||||||
**Question: Will MySQLTuner fix my slow MySQL server?**
|
|
||||||
|
**Question: Will MySQLTuner fix my slow MySQL server?**
|
||||||
**No.** MySQLTuner is a read only script. It won't write to any configuration files, change the status of any daemons, or call your mother to wish her a happy birthday. It will give you an overview of your server's performance and make some basic recommendations about improvements that you can make after it completes. *Make sure you read the warning above prior to following any recommendations.*
|
|
||||||
|
**No.** MySQLTuner is a read only script. It won't write to any configuration files, change the status of any daemons, or call your mother to wish her a happy birthday. It will give you an overview of your server's performance and make some basic recommendations about improvements that you can make after it completes. *Make sure you read the warning above prior to following any recommendations.*
|
||||||
**Question: Can I fire my DBA now?**
|
|
||||||
|
**Question: Can I fire my DBA now?**
|
||||||
**MySQLTuner will not replace your DBA in any form or fashion.** If your DBA constantly takes your parking spot and steals your lunch from the fridge, then you may want to consider it - but that's your call.
|
|
||||||
|
**MySQLTuner will not replace your DBA in any form or fashion.** If your DBA constantly takes your parking spot and steals your lunch from the fridge, then you may want to consider it - but that's your call.
|
||||||
**Question: Why does MySQLTuner keep asking me the login credentials for MySQL over and over?**
|
|
||||||
|
**Question: Why does MySQLTuner keep asking me the login credentials for MySQL over and over?**
|
||||||
The script will try its best to log in via any means possible. It will check for ~/.my.cnf files, Plesk password files, and empty password root logins. If none of those are available, then you'll be prompted for a password. If you'd like the script to run in an automated fashion without user intervention, then create a .my.cnf file in your home directory which contains:
|
|
||||||
|
The script will try its best to log in via any means possible. It will check for ~/.my.cnf files, Plesk password files, and empty password root logins. If none of those are available, then you'll be prompted for a password. If you'd like the script to run in an automated fashion without user intervention, then create a .my.cnf file in your home directory which contains:
|
||||||
[client]
|
|
||||||
user=someusername
|
[client]
|
||||||
pass=thatuserspassword
|
user=someusername
|
||||||
|
pass=thatuserspassword
|
||||||
Once you create it, make sure it's owned by your user and the mode on the file is 0600. This should prevent the prying eyes from getting your database login credentials under normal conditions. If a [T-1000 shows up in a LAPD uniform](https://en.wikipedia.org/wiki/T-1000) and demands your database credentials, you won't have much of an option.
|
|
||||||
|
Once you create it, make sure it's owned by your user and the mode on the file is 0600. This should prevent the prying eyes from getting your database login credentials under normal conditions. If a [T-1000 shows up in a LAPD uniform](https://en.wikipedia.org/wiki/T-1000) and demands your database credentials, you won't have much of an option.
|
||||||
**Question: Is there another way to secure credentials on latest MySQL and MariaDB distributions ?**
|
|
||||||
|
**Question: Is there another way to secure credentials on latest MySQL and MariaDB distributions ?**
|
||||||
You could use mysql_config_editor utilities.
|
|
||||||
|
You could use mysql_config_editor utilities.
|
||||||
$ mysql_config_editor set --login-path=client --user=someusername --password --host=localhost
|
|
||||||
Enter passord: ********
|
$ mysql_config_editor set --login-path=client --user=someusername --password --host=localhost
|
||||||
$
|
Enter passord: ********
|
||||||
|
$
|
||||||
At this time, ~/.mylogin.cnf has been written with appropriated rigth access.
|
|
||||||
|
At this time, ~/.mylogin.cnf has been written with appropriated rigth access.
|
||||||
To get information about stored credentials, use the following command:
|
|
||||||
|
To get information about stored credentials, use the following command:
|
||||||
$mysql_config_editor print
|
|
||||||
[client]
|
$mysql_config_editor print
|
||||||
user = someusername
|
[client]
|
||||||
password = *****
|
user = someusername
|
||||||
host = localhost
|
password = *****
|
||||||
|
host = localhost
|
||||||
**Question: What's minimum privileges needed by a specific mysqltuner user in database ?**
|
|
||||||
|
**Question: What's minimum privileges needed by a specific mysqltuner user in database ?**
|
||||||
mysql>GRANT SELECT, PROCESS,EXECUTE, REPLICATION CLIENT,SHOW DATABASES,SHOW VIEW ON *.* FOR 'mysqltuner'@'localhost' identified by pwd1234;
|
|
||||||
|
mysql>GRANT SELECT, PROCESS,EXECUTE, REPLICATION CLIENT,SHOW DATABASES,SHOW VIEW ON *.* FOR 'mysqltuner'@'localhost' identified by pwd1234;
|
||||||
**Question: It's not working on my OS! What gives?!**
|
|
||||||
|
**Question: It's not working on my OS! What gives?!**
|
||||||
These kinds of things are bound to happen. Here are the details I need from you in order to research the problem thoroughly:
|
|
||||||
|
These kinds of things are bound to happen. Here are the details I need from you in order to research the problem thoroughly:
|
||||||
* OS and OS version
|
|
||||||
* Architecture (x86, x86_64, IA64, Commodore 64)
|
* OS and OS version
|
||||||
* Exact MySQL version
|
* Architecture (x86, x86_64, IA64, Commodore 64)
|
||||||
* Where you obtained your MySQL version (OS package, source, etc)
|
* Exact MySQL version
|
||||||
* The full text of the error
|
* Where you obtained your MySQL version (OS package, source, etc)
|
||||||
* A copy of SHOW VARIABLES and SHOW GLOBAL STATUS output (if possible)
|
* The full text of the error
|
||||||
|
* A copy of SHOW VARIABLES and SHOW GLOBAL STATUS output (if possible)
|
||||||
**Question: How to perform a CVE vulneralibity checks ?**
|
|
||||||
|
**Question: How to perform a CVE vulneralibity checks ?**
|
||||||
* Download vulnerabilities.csv from this repository.
|
|
||||||
* use option --cvefile to perform CVE checks
|
* Download vulnerabilities.csv from this repository.
|
||||||
|
* use option --cvefile to perform CVE checks
|
||||||
**Question: How to use mysqltuner from remote host ?**
|
|
||||||
Thanks to [@rolandomysqldba](http://dba.stackexchange.com/users/877/rolandomysqldba)
|
**Question: How to use mysqltuner from remote host ?**
|
||||||
|
Thanks to [@rolandomysqldba](http://dba.stackexchange.com/users/877/rolandomysqldba)
|
||||||
* You will still have to connect like a mysql client:
|
|
||||||
|
* You will still have to connect like a mysql client:
|
||||||
Connection and Authentication
|
|
||||||
|
Connection and Authentication
|
||||||
--host <hostname> Connect to a remote host to perform tests (default: localhost)
|
|
||||||
--socket <socket> Use a different socket for a local connection
|
--host <hostname> Connect to a remote host to perform tests (default: localhost)
|
||||||
--port <port> Port to use for connection (default: 3306)
|
--socket <socket> Use a different socket for a local connection
|
||||||
--user <username> Username to use for authentication
|
--port <port> Port to use for connection (default: 3306)
|
||||||
--pass <password> Password to use for authentication
|
--user <username> Username to use for authentication
|
||||||
--defaults-file <path> defaulfs file for credentials
|
--pass <password> Password to use for authentication
|
||||||
|
--defaults-file <path> defaulfs file for credentials
|
||||||
Since you are using a remote host, use parameters to supply values from the OS
|
|
||||||
|
Since you are using a remote host, use parameters to supply values from the OS
|
||||||
--forcemem <size> Amount of RAM installed in megabytes
|
|
||||||
--forceswap <size> Amount of swap memory configured in megabytes
|
--forcemem <size> Amount of RAM installed in megabytes
|
||||||
|
--forceswap <size> Amount of swap memory configured in megabytes
|
||||||
* You may have to contact your remote SysAdmin to ask how much RAM and swap you have
|
|
||||||
|
* You may have to contact your remote SysAdmin to ask how much RAM and swap you have
|
||||||
If the database has too many tables, or very large table, use this:
|
|
||||||
|
If the database has too many tables, or very large table, use this:
|
||||||
--skipsize Don't enumerate tables and their types/sizes (default: on)
|
|
||||||
(Recommended for servers with many tables)
|
--skipsize Don't enumerate tables and their types/sizes (default: on)
|
||||||
|
(Recommended for servers with many tables)
|
||||||
MySQLTuner and Vagrant
|
|
||||||
--
|
MySQLTuner and Vagrant
|
||||||
**MySQLTuner** contains following Vagrant configurations:
|
--
|
||||||
* Fedora Core 23 / MariaDB 10.0
|
**MySQLTuner** contains following Vagrant configurations:
|
||||||
* Fedora Core 23 / MariaDB 10.1
|
* Fedora Core 23 / MariaDB 10.0
|
||||||
* Fedora Core 23 / MySQL 5.6
|
* Fedora Core 23 / MariaDB 10.1
|
||||||
* Fedora Core 23 / MySQL 5.7
|
* Fedora Core 23 / MySQL 5.6
|
||||||
|
* Fedora Core 23 / MySQL 5.7
|
||||||
**Vagrant File** are stored in Vagrant subdirectory.
|
|
||||||
* Follow this 2 steps after vagrant installation:
|
**Vagrant File** are stored in Vagrant subdirectory.
|
||||||
* Rename VagrantFile_for_Mxxx into Vagrantfile
|
* Follow this 2 steps after vagrant installation:
|
||||||
* vagrant up
|
* Rename VagrantFile_for_Mxxx into Vagrantfile
|
||||||
|
* vagrant up
|
||||||
**MySQLTuner** contains a Vagrant configurations for test purpose and development
|
|
||||||
* Install VirtualBox and Vagrant
|
**MySQLTuner** contains a Vagrant configurations for test purpose and development
|
||||||
* https://www.virtualbox.org/wiki/Downloads
|
* Install VirtualBox and Vagrant
|
||||||
* https://www.vagrantup.com/downloads.html
|
* https://www.virtualbox.org/wiki/Downloads
|
||||||
* Clone repository
|
* https://www.vagrantup.com/downloads.html
|
||||||
* git clone https://github.com/major/MySQLTuner-perl.git
|
* Clone repository
|
||||||
* Install Vagrant plugins vagrant-hostmanager and vagrant-vbguest
|
* git clone https://github.com/major/MySQLTuner-perl.git
|
||||||
* vagrant plugin install vagrant-hostmanager
|
* Install Vagrant plugins vagrant-hostmanager and vagrant-vbguest
|
||||||
* vagrant plugin install vagrant-vbguest
|
* vagrant plugin install vagrant-hostmanager
|
||||||
* Add Fedora Core 23 box for official Fedora Download Website
|
* vagrant plugin install vagrant-vbguest
|
||||||
* vagrant box add --name fc23 https://download.fedoraproject.org/pub/fedora/linux/releases/23/Cloud/x86_64/Images/Fedora-Cloud-Base-Vagrant-23-20151030.x86_64.vagrant-virtualbox.box
|
* Add Fedora Core 23 box for official Fedora Download Website
|
||||||
* Create a data directory
|
* vagrant box add --name fc23 https://download.fedoraproject.org/pub/fedora/linux/releases/23/Cloud/x86_64/Images/Fedora-Cloud-Base-Vagrant-23-20151030.x86_64.vagrant-virtualbox.box
|
||||||
* mkdir data
|
* Create a data directory
|
||||||
* Rename Vagrantfile_MariaDB10.0 into Vagrantfile
|
* mkdir data
|
||||||
* cp MySQLTuner-perl/Vagrant/Vagrantfile_for_MariaDB10.0 Vagrantfile
|
* Rename Vagrantfile_MariaDB10.0 into Vagrantfile
|
||||||
* Start vagrant
|
* cp MySQLTuner-perl/Vagrant/Vagrantfile_for_MariaDB10.0 Vagrantfile
|
||||||
* vagrant up
|
* Start vagrant
|
||||||
|
* vagrant up
|
||||||
MySQLTuner a besoin de vous
|
|
||||||
--
|
MySQLTuner a besoin de vous
|
||||||
**MySQLTuner** a besoin de contributeurs pour la documentation, le code, des tests et des retours d'expérience.
|
--
|
||||||
|
**MySQLTuner** a besoin de contributeurs pour la documentation, le code, des tests et des retours d'expérience.
|
||||||
* Rejoignez-nous sur le suivi de ticket à [GitHub tracker](https://github.com/major/MySQLTuner-perl/issues)</a>.
|
|
||||||
* Le guide de contribution en anglais est disponible ici [MySQLTuner contributing guide](https://github.com/major/MySQLTuner-perl/blob/master/CONTRIBUTING.md)
|
* Rejoignez-nous sur le suivi de ticket à [GitHub tracker](https://github.com/major/MySQLTuner-perl/issues)</a>.
|
||||||
* Ajouter une étoile à **MySQLTuner project** ici [MySQLTuner Git Hub Project](https://github.com/major/MySQLTuner-perl)
|
* Le guide de contribution en anglais est disponible ici [MySQLTuner contributing guide](https://github.com/major/MySQLTuner-perl/blob/master/CONTRIBUTING.md)
|
||||||
|
* Ajouter une étoile à **MySQLTuner project** ici [MySQLTuner Git Hub Project](https://github.com/major/MySQLTuner-perl)
|
||||||
|
|
18
README.it.md
18
README.it.md
|
@ -1,11 +1,12 @@
|
||||||
MySQLTuner-perl
|

|
||||||
====
|
|
||||||
[](https://travis-ci.org/major/MySQLTuner-perl)
|
[](https://www.buymeacoffee.com/jmrenouard)
|
||||||
[](http://opensource.box.com/badges)
|
|
||||||
[](http://opensource.box.com/badges)
|
[](http://opensource.box.com/badges)
|
||||||
[](http://isitmaintained.com/project/major/MySQLTuner-perl "Average time to resolve an issue")
|
[](http://opensource.box.com/badges)
|
||||||
[](http://isitmaintained.com/project/major/MySQLTuner-perl "Percentage of issues still open")
|
[](http://isitmaintained.com/project/major/MySQLTuner-perl "Average time to resolve an issue")
|
||||||
[](https://opensource.org/licenses/GPL-3.0/)
|
[](http://isitmaintained.com/project/major/MySQLTuner-perl "Percentage of issues still open")
|
||||||
|
[](https://opensource.org/licenses/GPL-3.0/)
|
||||||
|
|
||||||
**MySQLTuner** è uno script Perl che permette di analizzare velocemente una installazione di MySQL, nonché di apportare modifiche per migliorare le prestazioni e la stabilità. In modo coinciso sono riportati lo stato attuale delle variabili di configurazione e i dati sullo stato del sistema, corredati da suggerimenti di base per il miglioramento delle prestazioni.
|
**MySQLTuner** è uno script Perl che permette di analizzare velocemente una installazione di MySQL, nonché di apportare modifiche per migliorare le prestazioni e la stabilità. In modo coinciso sono riportati lo stato attuale delle variabili di configurazione e i dati sullo stato del sistema, corredati da suggerimenti di base per il miglioramento delle prestazioni.
|
||||||
|
|
||||||
|
@ -235,4 +236,3 @@ MySQLTuner ha bisogno di te:
|
||||||
* Problemi e suggerimenti possono essere riportati su [GitHub tracker](https://github.com/major/MySQLTuner-perl/issues).
|
* Problemi e suggerimenti possono essere riportati su [GitHub tracker](https://github.com/major/MySQLTuner-perl/issues).
|
||||||
* La guida per contribuire è disponibile in inglese: [MySQLTuner contributing guide](https://github.com/major/MySQLTuner-perl/blob/master/CONTRIBUTING.md)
|
* La guida per contribuire è disponibile in inglese: [MySQLTuner contributing guide](https://github.com/major/MySQLTuner-perl/blob/master/CONTRIBUTING.md)
|
||||||
* Dai un Stella a **MySQLTuner project** su [GitHub](https://github.com/major/MySQLTuner-perl)
|
* Dai un Stella a **MySQLTuner project** su [GitHub](https://github.com/major/MySQLTuner-perl)
|
||||||
|
|
||||||
|
|
916
README.md
916
README.md
|
@ -1,299 +1,617 @@
|
||||||
MySQLTuner-perl
|

|
||||||
====
|
|
||||||
[](https://travis-ci.org/major/MySQLTuner-perl)
|
[](https://www.buymeacoffee.com/jmrenouard)
|
||||||
[](http://opensource.box.com/badges)
|
|
||||||
[](http://opensource.box.com/badges)
|
[](http://opensource.box.com/badges)
|
||||||
[](http://isitmaintained.com/project/major/MySQLTuner-perl "Average time to resolve an issue")
|
[](https://github.com/anuraghazra/github-readme-stats/)
|
||||||
[](http://isitmaintained.com/project/major/MySQLTuner-perl "Percentage of issues still open")
|
[](http://isitmaintained.com/project/major/MySQLTuner-perl "Average time to resolve an issue")
|
||||||
[](https://opensource.org/licenses/GPL-3.0/)
|
[](http://isitmaintained.com/project/major/MySQLTuner-perl "Percentage of issues still open")
|
||||||
|
[](https://opensource.org/licenses/GPL-3.0/)
|
||||||
**MySQLTuner** is a script written in Perl that allows you to review a MySQL installation quickly and make adjustments to increase performance and stability. The current configuration variables and status data is retrieved and presented in a brief format along with some basic performance suggestions.
|
|
||||||
|
**MySQLTuner** is a script written in Perl that allows you to review a MySQL installation quickly and make adjustments to increase performance and stability. The current configuration variables and status data is retrieved and presented in a brief format along with some basic performance suggestions.
|
||||||
**MySQLTuner** supports ~300 indicators for MySQL/MariaDB/Percona Server in this last version.
|
|
||||||
|
**MySQLTuner** supports ~300 indicators for MySQL/MariaDB/Percona Server in this latest version.
|
||||||
**MySQLTuner** is maintained and indicator collect is increasing week after week supporting a lot of configuration such as [Galera Cluster](http://galeracluster.com/), [TokuDB](https://www.percona.com/software/mysql-database/percona-tokudb), [Performance schema](https://github.com/mysql/mysql-sys), Linux OS metrics, [InnoDB](http://dev.mysql.com/doc/refman/5.7/en/innodb-storage-engine.html), [MyISAM](http://dev.mysql.com/doc/refman/5.7/en/myisam-storage-engine.html), [Aria](https://mariadb.com/kb/en/mariadb/aria/), ...
|
|
||||||
|
**MySQLTuner** is actively maintained supporting many configurations such as [Galera Cluster](http://galeracluster.com/), [TokuDB](https://www.percona.com/software/mysql-database/percona-tokudb), [Performance schema](https://github.com/mysql/mysql-sys), Linux OS metrics, [InnoDB](http://dev.mysql.com/doc/refman/5.7/en/innodb-storage-engine.html), [MyISAM](http://dev.mysql.com/doc/refman/5.7/en/myisam-storage-engine.html), [Aria](https://mariadb.com/kb/en/mariadb/aria/), ...
|
||||||
You can find more details on these indicators here:
|
|
||||||
[Indicators description](https://github.com/major/MySQLTuner-perl/blob/master/INTERNALS.md).
|
You can find more details on these indicators here:
|
||||||
|
[Indicators description](https://github.com/major/MySQLTuner-perl/blob/master/INTERNALS.md).
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
MySQLTuner needs you:
|
MySQLTuner needs you
|
||||||
===
|
===
|
||||||
|
|
||||||
**MySQLTuner** needs contributors for documentation, code and feedback..
|
**MySQLTuner** needs contributors for documentation, code and feedback:
|
||||||
|
|
||||||
* Please join us on issue track at [GitHub tracker](https://github.com/major/MySQLTuner-perl/issues).
|
* Please join us on our issue tracker at [GitHub tracker](https://github.com/major/MySQLTuner-perl/issues).
|
||||||
* Contribution guide is available following [MySQLTuner contributing guide](https://github.com/major/MySQLTuner-perl/blob/master/CONTRIBUTING.md)
|
* Contribution guide is available following [MySQLTuner contributing guide](https://github.com/major/MySQLTuner-perl/blob/master/CONTRIBUTING.md)
|
||||||
* Star **MySQLTuner project** at [MySQLTuner Git Hub Project](https://github.com/major/MySQLTuner-perl)
|
* Star **MySQLTuner project** at [MySQLTuner Git Hub Project](https://github.com/major/MySQLTuner-perl)
|
||||||
## Stargazers over time
|
* Paid support for LightPath here: [jmrenouard@lightpath.fr](jmrenouard@lightpath.fr)
|
||||||
|
* Paid support for Releem available here: [Releem App](https://releem.com/)
|
||||||
[](https://starcharts.herokuapp.com/major/MySQLTuner-perl)
|
|
||||||
|

|
||||||
Compatibility
|
|
||||||
====
|
## Stargazers over time
|
||||||
Test result are available here: [Travis CI/MySQLTuner-perl](https://travis-ci.org/major/MySQLTuner-perl)
|
|
||||||
* MySQL 8 (partial support, password checks don't work)
|
[](https://starchart.cc/major/MySQLTuner-perl)
|
||||||
* MySQL 5.7 (full support)
|
|
||||||
* MySQL 5.6 (full support)
|
|
||||||
* MariaDB 10.3 (full support)
|
Compatibility
|
||||||
* MariaDB 10.2 (full support)
|
====
|
||||||
* MariaDB 10.1 (full support)
|
|
||||||
* MariaDB 10.0 (full support, 6 last month support)
|
Test result are available here:
|
||||||
* Percona Server 5.7 (full support)
|
|
||||||
* Percona Server 5.6 (full support)
|
* MySQL 8.0, 8.2, 8.3 (full support)
|
||||||
* Percona XtraDB cluster (full support)
|
* Percona Server 8.0, 8.2, 8.3 (full support)
|
||||||
* MySQL 3.23, 4.0, 4.1, 5.0, 5.1, 5.5 (partial support - deprecated version)
|
* MariaDB 10.4, 10.5, 10.6, 10.11, 11.0, 11.1, 11.2 (full support)
|
||||||
* Perl 5.6 or later (with [perl-doc](http://search.cpan.org/~dapm/perl-5.14.4/pod/perldoc.pod) package)
|
* Galera replication (full support)
|
||||||
* Unix/Linux based operating system (tested on Linux, BSD variants, and Solaris variants)
|
* Percona XtraDB cluster (full support)
|
||||||
* Windows is not supported at this time (Help wanted !!!!!)
|
* Mysql Replications (partial support, no test environment)
|
||||||
* Unrestricted read access to the MySQL server (OS root access recommended for MySQL < 5.1)
|
|
||||||
* CVE vulnerabilities detection support from [https://cve.mitre.org](https://cve.mitre.org)
|
* MySQL 8.1 (not supported, deprecated version)
|
||||||
|
* Percona Server 5.7 (not supported, deprecated version)
|
||||||
***WARNING***
|
* MySQL 5.7 (not supported, deprecated version)
|
||||||
--
|
* MySQL 5.6 and earlier (not supported, deprecated version)
|
||||||
It is **extremely important** for you to fully understand each change
|
* Percona Server 5.6 (not supported, deprecated version)
|
||||||
you make to a MySQL database server. If you don't understand portions
|
* MariaDB 10.7, 10.8, 10.9, 10.10 (not supported, deprecated version)
|
||||||
of the script's output, or if you don't understand the recommendations,
|
* MariaDB 10.3 and earlier (not supported, deprecated version)
|
||||||
**you should consult** a knowledgeable DBA or system administrator
|
* MariaDB 5.5 (not supported, deprecated version)
|
||||||
that you trust. **Always** test your changes on staging environments, and
|
|
||||||
always keep in mind that improvements in one area can **negatively affect**
|
***Windows Support is partial***
|
||||||
MySQL in other areas.
|
|
||||||
|
* Windows is now supported at this time
|
||||||
It's **also important** to wait at least a day of uptime to get accurate results. In fact, running
|
* Successfully run MySQLtuner across WSL2 (Windows Subsystem Linux)
|
||||||
**mysqltuner** on a fresh restarted server is completely useless.
|
* [https://docs.microsoft.com/en-us/windows/wsl/](https://docs.microsoft.com/en-us/windows/wsl/)
|
||||||
|
|
||||||
**Seriously - please review the FAQ section below.**
|
***UNSUPPORTED ENVIRONMENTS - NEED HELP WITH THAT***
|
||||||
|
* Cloud based is not supported at this time (Help wanted! GCP, AWS, Azure support requested)
|
||||||
|
|
||||||
Security recommendations
|
***Unsupported storage engines: PRs welcome***
|
||||||
--
|
--
|
||||||
|
|
||||||
Hi directadmin user!
|
* NDB is not supported feel free to create a Pull Request
|
||||||
We detected that you run mysqltuner with da_admin's credentials taken from `/usr/local/directadmin/conf/my.cnf`, which might bring to a password discovery!
|
* Archive
|
||||||
Read link for more details [Issue #289](https://github.com/major/MySQLTuner-perl/issues/289).
|
* Spider
|
||||||
|
* ColummStore
|
||||||
What MySQLTuner is checking exactly ?
|
* Connect
|
||||||
--
|
|
||||||
All checks done by **MySQLTuner** are documented in [MySQLTuner Internals](https://github.com/major/MySQLTuner-perl/blob/master/INTERNALS.md) documentation.
|
Unmaintenained stuff from MySQL or MariaDB:
|
||||||
|
--
|
||||||
Download/Installation
|
|
||||||
--
|
* MyISAM is too old and no longer active
|
||||||
|
* RockDB is not maintained anymore
|
||||||
Choose one of these methods:
|
* TokuDB is not maintained anymore
|
||||||
|
* XtraDB is not maintained anymore
|
||||||
1) Script direct download (the simplest and shortest method):
|
|
||||||
|
* CVE vulnerabilities detection support from [https://cve.mitre.org](https://cve.mitre.org)
|
||||||
```
|
|
||||||
wget http://mysqltuner.pl/ -O mysqltuner.pl
|
***MINIMAL REQUIREMENTS***
|
||||||
wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/basic_passwords.txt -O basic_passwords.txt
|
|
||||||
wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/vulnerabilities.csv -O vulnerabilities.csv
|
* Perl 5.6 or later (with [perl-doc](http://search.cpan.org/~dapm/perl-5.14.4/pod/perldoc.pod) package)
|
||||||
```
|
* Unix/Linux based operating system (tested on Linux, BSD variants, and Solaris variants)
|
||||||
|
* Unrestricted read access to the MySQL server
|
||||||
2) You can download the entire repository by using `git clone` or `git clone --depth 1 -b master` followed by the cloning URL above.
|
OS root access recommended for MySQL < 5.1
|
||||||
|
|
||||||
Optional Sysschema installation for MySQL 5.6
|
***WARNING***
|
||||||
--
|
--
|
||||||
|
|
||||||
Sysschema is installed by default under MySQL 5.7 and MySQL 8 from Oracle.
|
It is **important** for you to fully understand each change
|
||||||
By default, on MySQL 5.6/5.7/8, performance schema is enabled by default.
|
you make to a MySQL database server. If you don't understand portions
|
||||||
For previous 5.6 version, you can follow this command to create a new database sys containing very useful view on Performance schema:
|
of the script's output, or if you don't understand the recommendations,
|
||||||
|
**you should consult** a knowledgeable DBA or system administrator
|
||||||
curl "https://codeload.github.com/mysql/mysql-sys/zip/master" > sysschema.zip
|
that you trust. **Always** test your changes on staging environments, and
|
||||||
# check zip file
|
always keep in mind that improvements in one area can **adversely affect**
|
||||||
unzip -l sysschema.zip
|
MySQL in other areas.
|
||||||
unzip sysschema.zip
|
|
||||||
cd mysql-sys-master
|
It's **also important** to wait at least 24 hours of uptime to get accurate results. In fact, running
|
||||||
mysql -uroot -p < sys_56.sql
|
**mysqltuner** on a fresh restarted server is completely useless.
|
||||||
|
|
||||||
Optional Performance schema and Sysschema installation for MariaDB 10.x
|
**Also review the FAQ section below.**
|
||||||
--
|
|
||||||
|
Security recommendations
|
||||||
Sysschema is not installed by default under MariaDB 10.x.
|
--
|
||||||
By default, on MariaDB, performance schema is disabled by default. consider activating performance schema across your my.cnf configuration file:
|
|
||||||
|
Hi directadmin user!
|
||||||
[mysqld]
|
We detected that you run mysqltuner with da_admin's credentials taken from `/usr/local/directadmin/conf/my.cnf`, which might bring to a password discovery!
|
||||||
performance_schema = on
|
Read link for more details [Issue #289](https://github.com/major/MySQLTuner-perl/issues/289).
|
||||||
|
|
||||||
You can follow this command to create a new database sys containing very useful view on Performance schema:
|
What is MySQLTuner checking exactly ?
|
||||||
|
--
|
||||||
curl "https://codeload.github.com/good-dba/mariadb-sys/zip/master" > mariadb-sys.zip
|
|
||||||
# check zip file
|
All checks done by **MySQLTuner** are documented in [MySQLTuner Internals](https://github.com/major/MySQLTuner-perl/blob/master/INTERNALS.md) documentation.
|
||||||
unzip -l mariadb-sys.zip
|
|
||||||
unzip mariadb-sys.zip
|
Download/Installation
|
||||||
cd mariadb-sys-master/
|
--
|
||||||
mysql -u root -p < ./mariadb_sys_install.sql
|
|
||||||
|
Choose one of these methods:
|
||||||
Performance tips
|
|
||||||
--
|
1) Script direct download (the simplest and shortest method):
|
||||||
Metadata statistic updates can impact strongly performance of database servers and MySQLTuner.
|
|
||||||
Be sure that innodb_stats_on_metadata is disabled.
|
```bash
|
||||||
|
wget http://mysqltuner.pl/ -O mysqltuner.pl
|
||||||
set global innodb_stats_on_metadata = 0;
|
wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/basic_passwords.txt -O basic_passwords.txt
|
||||||
|
wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/vulnerabilities.csv -O vulnerabilities.csv
|
||||||
Specific usage
|
```
|
||||||
--
|
|
||||||
|
2) You can download the entire repository by using `git clone` or `git clone --depth 1 -b master` followed by the cloning URL above.
|
||||||
__Usage:__ Minimal usage locally
|
|
||||||
|
Optional Sysschema installation for MySQL 5.6
|
||||||
perl mysqltuner.pl
|
--
|
||||||
|
|
||||||
Of course, you can add the execute bit (`chmod +x mysqltuner.pl`) so you can execute it without calling perl directly.
|
Sysschema is installed by default under MySQL 5.7 and MySQL 8 from Oracle.
|
||||||
|
By default, on MySQL 5.6/5.7/8, performance schema is enabled.
|
||||||
__Usage:__ Minimal usage remotely
|
For previous MySQL 5.6 version, you can follow this command to create a new database sys containing very useful view on Performance schema:
|
||||||
|
|
||||||
perl mysqltuner.pl --host targetDNS_IP --user admin_user --pass admin_password
|
Sysschema for MySQL old version
|
||||||
|
--
|
||||||
__Usage:__ Enable maximum output information around MySQL/MariaDb without debugging
|
|
||||||
|
```bash
|
||||||
perl mysqltuner.pl --verbose
|
curl "https://codeload.github.com/mysql/mysql-sys/zip/master" > sysschema.zip
|
||||||
perl mysqltuner.pl --buffers --dbstat --idxstat --sysstat --pfstat --tbstat
|
# check zip file
|
||||||
|
unzip -l sysschema.zip
|
||||||
|
unzip sysschema.zip
|
||||||
__Usage:__ Enable CVE vulnerabilities check for your MariaDB or MySQL version
|
cd mysql-sys-master
|
||||||
|
mysql -uroot -p < sys_56.sql
|
||||||
perl mysqltuner.pl --cvefile=vulnerabilities.csv
|
```
|
||||||
|
|
||||||
__Usage:__ Write your result in a file with information displayed
|
Sysschema for MariaDB old version
|
||||||
|
--
|
||||||
perl mysqltuner.pl --outputfile /tmp/result_mysqltuner.txt
|
|
||||||
|
```bash
|
||||||
__Usage:__ Write your result in a file **without outputting information**
|
curl "https://github.com/FromDual/mariadb-sys/archive/refs/heads/master.zip" > sysschema.zip
|
||||||
|
# check zip file
|
||||||
perl mysqltuner.pl --silent --outputfile /tmp/result_mysqltuner.txt
|
unzip -l sysschema.zip
|
||||||
|
unzip sysschema.zip
|
||||||
__Usage:__ Using template model to customize your reporting file based on [Text::Template](https://metacpan.org/pod/Text::Template) syntax.
|
cd mariadb-sys-master
|
||||||
|
mysql -u root -p < ./sys_10.sql
|
||||||
perl mysqltuner.pl --silent --reportfile /tmp/result_mysqltuner.txt --template=/tmp/mymodel.tmpl
|
```
|
||||||
|
|
||||||
__Usage:__ Enable debugging information
|
Performance schema setup
|
||||||
|
--
|
||||||
perl mysqltuner.pl --debug
|
|
||||||
|
By default, performance_schema is enabled and sysschema is installed on latest version.
|
||||||
FAQ
|
|
||||||
--
|
By default, on MariaDB, performance schema is disabled (MariaDB<10.6).
|
||||||
|
|
||||||
**Question: Will MySQLTuner fix my slow MySQL server?**
|
Consider activating performance schema across your my.cnf configuration file:
|
||||||
|
|
||||||
**No.** MySQLTuner is a read only script. It won't write to any configuration files, change the status of any daemons, or call your mother to wish her a happy birthday. It will give you an overview of your server's performance and make some basic recommendations for improvements that you can make after it completes. *Make sure you read the warning above prior to following any recommendations.*
|
```ini
|
||||||
|
[mysqld]
|
||||||
**Question: Can I fire my DBA now?**
|
performance_schema = on
|
||||||
|
performance-schema-consumer-events-statements-history-long = ON
|
||||||
**MySQLTuner will not replace your DBA in any form or fashion.** If your DBA constantly takes your parking spot and steals your lunch from the fridge, then you may want to consider it - but that's your call.
|
performance-schema-consumer-events-statements-history = ON
|
||||||
|
performance-schema-consumer-events-statements-current = ON
|
||||||
**Question: Why does MySQLTuner keep asking me the login credentials for MySQL over and over?**
|
performance-schema-consumer-events-stages-current=ON
|
||||||
|
performance-schema-consumer-events-stages-history=ON
|
||||||
The script will try its best to log in via any means possible. It will check for ~/.my.cnf files, Plesk password files, and empty password root logins. If none of those are available, then you'll be prompted for a password. If you'd like the script to run in an automated fashion without user intervention, then create a .my.cnf file in your home directory which contains:
|
performance-schema-consumer-events-stages-history-long=ON
|
||||||
|
performance-schema-consumer-events-transactions-current=ON
|
||||||
[client]
|
performance-schema-consumer-events-transactions-history=ON
|
||||||
user=someusername
|
performance-schema-consumer-events-transactions-history-long=ON
|
||||||
password=thatuserspassword
|
performance-schema-consumer-events-waits-current=ON
|
||||||
|
performance-schema-consumer-events-waits-history=ON
|
||||||
Once you create it, make sure it's owned by your user and the mode on the file is 0600. This should prevent the prying eyes from getting your database login credentials under normal conditions. If a [T-1000 shows up in a LAPD uniform](https://en.wikipedia.org/wiki/T-1000) and demands your database credentials, you won't have much of an option.
|
performance-schema-consumer-events-waits-history-long=ON
|
||||||
|
performance-schema-instrument='%=ON'
|
||||||
**Question: Is there another way to secure credentials on latest MySQL and MariaDB distributions ?**
|
max-digest-length=2048
|
||||||
|
performance-schema-max-digest-length=2018
|
||||||
You could use mysql_config_editor utilities.
|
```
|
||||||
~~~bash
|
|
||||||
$ mysql_config_editor set --login-path=client --user=someusername --password --host=localhost
|
Sysschema installation for MariaDB < 10.6
|
||||||
Enter password: ********
|
--
|
||||||
~~~
|
|
||||||
After which, `~/.mylogin.cnf` will be created with the appropriate access.
|
Sysschema is not installed by default under MariaDB prior to 10.6 [MariaDB sys](https://mariadb.com/kb/en/sys-schema/)
|
||||||
|
|
||||||
To get information about stored credentials, use the following command:
|
You can follow this command to create a new database sys containing a useful view on Performance schema:
|
||||||
|
|
||||||
$mysql_config_editor print
|
```bash
|
||||||
[client]
|
curl "https://codeload.github.com/FromDual/mariadb-sys/zip/master" > mariadb-sys.zip
|
||||||
user = someusername
|
# check zip file
|
||||||
password = *****
|
unzip -l mariadb-sys.zip
|
||||||
host = localhost
|
unzip mariadb-sys.zip
|
||||||
|
cd mariadb-sys-master/
|
||||||
**Question: What's minimum privileges needed by a specific mysqltuner user in database ?**
|
mysql -u root -p < ./sys_10.sql
|
||||||
|
```
|
||||||
mysql>GRANT SELECT, PROCESS,EXECUTE, REPLICATION CLIENT,SHOW DATABASES,SHOW VIEW ON *.* TO 'mysqltuner'@'localhost' identified by pwd1234;
|
|
||||||
|
Errors & solutions for performance schema installation
|
||||||
**Question: It's not working on my OS! What gives?!**
|
--
|
||||||
|
|
||||||
These kinds of things are bound to happen. Here are the details I need from you in order to research the problem thoroughly:
|
|
||||||
|
ERROR 1054 (42S22) at line 78 in file: './views/p_s/metrics_56.sql': Unknown column 'STATUS' in 'field list'
|
||||||
* OS and OS version
|
--
|
||||||
* Architecture (x86, x86_64, IA64, Commodore 64)
|
|
||||||
* Exact MySQL version
|
|
||||||
* Where you obtained your MySQL version (OS package, source, etc)
|
This error can be safely ignored
|
||||||
* The full text of the error
|
Consider using a recent MySQL/MariaDB version to avoid this kind of issue during sysschema installation
|
||||||
* A copy of SHOW VARIABLES and SHOW GLOBAL STATUS output (if possible)
|
|
||||||
|
In recent versions, sysschema is installed and integrated by default as sys schema (SHOW DATABASES)
|
||||||
**Question: How to perform CVE vulnerability checks?**
|
|
||||||
|
|
||||||
* Download vulnerabilities.csv from this repository.
|
|
||||||
* use option --cvefile to perform CVE checks
|
ERROR at line 21: Failed to open file './tables/sys_config_data_10.sql -- ported', error: 2
|
||||||
|
Have a look at #452 solution given by @ericx
|
||||||
**Question: How to use mysqltuner from a remote host?**
|
--
|
||||||
Thanks to [@rolandomysqldba](http://dba.stackexchange.com/users/877/rolandomysqldba)
|
|
||||||
|
Fixing sysctl configuration (/etc/sysctl.conf)
|
||||||
* You will still have to connect like a mysql client:
|
|
||||||
|
--
|
||||||
Connection and Authentication
|
It is a system wide setting and not a database setting: [Linux FS Kernel settings](https://www.kernel.org/doc/html/latest/admin-guide/sysctl/fs.html#id1)
|
||||||
|
|
||||||
--host <hostname> Connect to a remote host to perform tests (default: localhost)
|
You can check its values via:
|
||||||
--socket <socket> Use a different socket for a local connection
|
|
||||||
--port <port> Port to use for connection (default: 3306)
|
```bash
|
||||||
--user <username> Username to use for authentication
|
$ cat /proc/sys/fs/aio-*
|
||||||
--pass <password> Password to use for authentication
|
65536
|
||||||
--defaults-file <path> defaults file for credentials
|
2305
|
||||||
|
```
|
||||||
Since you are using a remote host, use parameters to supply values from the OS
|
|
||||||
|
For example, to set the aio-max-nr value, add the following line to the /etc/sysctl.conf file:
|
||||||
--forcemem <size> Amount of RAM installed in megabytes
|
|
||||||
--forceswap <size> Amount of swap memory configured in megabytes
|
```bash
|
||||||
|
fs.aio-max-nr = 1048576
|
||||||
* You may have to contact your remote SysAdmin to ask how much RAM and swap you have
|
```
|
||||||
|
|
||||||
If the database has too many tables, or very large table, use this:
|
To activate the new setting:
|
||||||
|
|
||||||
--skipsize Don't enumerate tables and their types/sizes (default: on)
|
```bash
|
||||||
(Recommended for servers with many tables)
|
$ sysctl -p /etc/sysctl.conf
|
||||||
|
```
|
||||||
**Question: Can I install this project using homebrew on Apple Macintosh?**
|
|
||||||
|
Specific usage
|
||||||
Yes! `brew install mysqltuner` can be used to install this application using [homebrew](https://brew.sh/) on Apple Macintosh.
|
--
|
||||||
|
|
||||||
MySQLTuner and Vagrant
|
__Usage:__ Minimal usage locally
|
||||||
--
|
|
||||||
**MySQLTuner** contains following Vagrant configurations:
|
```bash
|
||||||
* Fedora Core 23 / MariaDB 10.0
|
perl mysqltuner.pl --host 127.0.0.1
|
||||||
* Fedora Core 23 / MariaDB 10.1
|
```
|
||||||
* Fedora Core 23 / MySQL 5.6
|
|
||||||
* Fedora Core 23 / MySQL 5.7
|
Of course, you can add the execute bit (`chmod +x mysqltuner.pl`) so you can execute it without calling Perl directly.
|
||||||
|
|
||||||
**Vagrant File** are stored in Vagrant subdirectory.
|
__Usage:__ Minimal usage remotely
|
||||||
* Follow this 2 steps after vagrant installation:
|
|
||||||
* Rename VagrantFile_for_Mxxx into Vagrantfile
|
In previous version, --forcemem shoud be set manually, in order to be able to run an MySQLTuner analysis
|
||||||
* vagrant up
|
|
||||||
|
Since 2.1.10, memory and swap are defined to 1Gb by default.
|
||||||
**MySQLTuner** contains a Vagrant configurations for test purpose and development
|
|
||||||
* Install VirtualBox and Vagrant
|
If you want a more accurate value according to your remote server, feel free to setup --forcemem and --forceswap to real RAM value
|
||||||
* https://www.virtualbox.org/wiki/Downloads
|
|
||||||
* https://www.vagrantup.com/downloads.html
|
```bash
|
||||||
* Clone repository
|
perl mysqltuner.pl --host targetDNS_IP --user admin_user --pass admin_password
|
||||||
* git clone https://github.com/major/MySQLTuner-perl.git
|
```
|
||||||
* Install Vagrant plugins vagrant-hostmanager and vagrant-vbguest
|
|
||||||
* vagrant plugin install vagrant-hostmanager
|
__Usage:__ Enable maximum output information around MySQL/MariaDb without debugging
|
||||||
* vagrant plugin install vagrant-vbguest
|
|
||||||
* Add Fedora Core 23 box for official Fedora Download Website
|
```bash
|
||||||
* vagrant box add --name fc23 https://download.fedoraproject.org/pub/fedora/linux/releases/23/Cloud/x86_64/Images/Fedora-Cloud-Base-Vagrant-23-20151030.x86_64.vagrant-virtualbox.box
|
perl mysqltuner.pl --verbose
|
||||||
* Create a data directory
|
perl mysqltuner.pl --buffers --dbstat --idxstat --sysstat --pfstat --tbstat
|
||||||
* mkdir data
|
```
|
||||||
* Rename Vagrantfile_MariaDB10.0 into Vagrantfile
|
|
||||||
* cp MySQLTuner-perl/Vagrant/Vagrantfile_for_MariaDB10.0 Vagrantfile
|
__Usage:__ Enable CVE vulnerabilities check for your MariaDB or MySQL version
|
||||||
* Start vagrant
|
|
||||||
* vagrant up
|
```bash
|
||||||
|
perl mysqltuner.pl --cvefile=vulnerabilities.csv
|
||||||
MySQLTuner needs you
|
```
|
||||||
--
|
|
||||||
**MySQLTuner** needs contributors for documentation, code and feedback..
|
__Usage:__ Write your result in a file with information displayed
|
||||||
|
|
||||||
* Please join us on issue track at [GitHub tracker](https://github.com/major/MySQLTuner-perl/issues).
|
```bash
|
||||||
* Contribution guide is available following [MySQLTuner contributing guide](https://github.com/major/MySQLTuner-perl/blob/master/CONTRIBUTING.md)
|
perl mysqltuner.pl --outputfile /tmp/result_mysqltuner.txt
|
||||||
* Star **MySQLTuner project** at [MySQLTuner Git Hub Project](https://github.com/major/MySQLTuner-perl)
|
```
|
||||||
|
|
||||||
|
__Usage:__ Write your result in a file **without outputting information**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
perl mysqltuner.pl --silent --outputfile /tmp/result_mysqltuner.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
__Usage:__ Using template model to customize your reporting file based on [Text::Template](https://metacpan.org/pod/Text::Template) syntax.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
perl mysqltuner.pl --silent --reportfile /tmp/result_mysqltuner.txt --template=/tmp/mymodel.tmpl
|
||||||
|
```
|
||||||
|
|
||||||
|
__Important__: [Text::Template](https://metacpan.org/pod/Text::Template) module is mandatory for `--reportfile` and/or `--template` options, because this module is needed to generate appropriate output based on a text template.
|
||||||
|
|
||||||
|
|
||||||
|
__Usage:__ Dumping all information_schema and sysschema views as csv file into results subdirectory
|
||||||
|
|
||||||
|
```bash
|
||||||
|
perl mysqltuner.pl --verbose --dumpdir=./result
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
__Usage:__ Enable debugging information
|
||||||
|
|
||||||
|
```bash
|
||||||
|
perl mysqltuner.pl --debug
|
||||||
|
```
|
||||||
|
|
||||||
|
__Usage:__ Update MySQLTuner and data files (password and cve) if needed
|
||||||
|
|
||||||
|
```bash
|
||||||
|
perl mysqltuner.pl --checkversion --updateversion
|
||||||
|
```
|
||||||
|
|
||||||
|
HTML reports based on Python Jinja2
|
||||||
|
--
|
||||||
|
|
||||||
|
HTML generation is based on Python/Jinja2
|
||||||
|
|
||||||
|
**HTML generation Procedure**
|
||||||
|
|
||||||
|
- Generate mysqltuner.pl report using JSON format (--json)
|
||||||
|
- Generate HTML report using j2 python tools
|
||||||
|
|
||||||
|
**Jinja2 Templates are located under templates sub directory**
|
||||||
|
|
||||||
|
A basic example is called basic.html.j2
|
||||||
|
|
||||||
|
**Installation Python j2**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
python -mvenv j2
|
||||||
|
source ./j2/bin/activate
|
||||||
|
(j2) pip install j2
|
||||||
|
```
|
||||||
|
|
||||||
|
**Using Html report generation**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
perl mysqltuner.pl --verbose --json > reports.json
|
||||||
|
cat reports.json j2 -f json MySQLTuner-perl/templates/basic.html.j2 > variables.html
|
||||||
|
```
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
```bash
|
||||||
|
perl mysqltuner.pl --verbose --json | j2 -f json MySQLTuner-perl/templates/basic.html.j2 > variables.html
|
||||||
|
```
|
||||||
|
|
||||||
|
HTML reports based on AHA
|
||||||
|
--
|
||||||
|
|
||||||
|
HTML generation is based on AHA
|
||||||
|
|
||||||
|
**HTML generation Procedure**
|
||||||
|
|
||||||
|
- Generate mysqltuner.pl report using standard text reports
|
||||||
|
- Generate HTML report using aha
|
||||||
|
|
||||||
|
**Installation Aha**
|
||||||
|
|
||||||
|
Follow instructions from Github repo
|
||||||
|
|
||||||
|
[GitHub AHA main repository](https://github.com/theZiz/aha)
|
||||||
|
|
||||||
|
**Using AHA Html report generation**
|
||||||
|
|
||||||
|
perl mysqltuner.pl --verbose --color > reports.txt
|
||||||
|
aha --black --title "MySQLTuner" -f "reports.txt" > "reports.html"
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
perl mysqltuner.pl --verbose --color | aha --black --title "MySQLTuner" > reports.html
|
||||||
|
|
||||||
|
|
||||||
|
FAQ
|
||||||
|
--
|
||||||
|
**Question: What are the prerequisites for running MySQL tuner ?**
|
||||||
|
|
||||||
|
Before running MySQL tuner, you should have the following:
|
||||||
|
|
||||||
|
- A MySQL server installation
|
||||||
|
- Perl installed on your system
|
||||||
|
- Administrative access to your MySQL server
|
||||||
|
|
||||||
|
**Question: Can MySQL tuner make changes to my configuration automatically ?**
|
||||||
|
|
||||||
|
**No.**, MySQL tuner only provides recommendations. It does not make any changes to your configuration files automatically. It is up to the user to review the suggestions and implement them as needed.
|
||||||
|
|
||||||
|
**Question: How often should I run MySQL tuner ?**
|
||||||
|
|
||||||
|
It is recommended to run MySQL tuner periodically, especially after significant changes to your MySQL server or its workload.
|
||||||
|
|
||||||
|
For optimal results, run the script after your server has been running for at least 24 hours to gather sufficient performance data.
|
||||||
|
|
||||||
|
**Question: How do I interpret the results from MySQL tuner ?**
|
||||||
|
|
||||||
|
MySQL tuner provides output in the form of suggestions and warnings.
|
||||||
|
|
||||||
|
Review each recommendation and consider implementing the changes in your MySQL configuration file (usually 'my.cnf' or 'my.ini').
|
||||||
|
|
||||||
|
Be cautious when making changes and always backup your configuration file before making any modifications.
|
||||||
|
|
||||||
|
**Question: Can MySQL tuner cause harm to my database or server ?**
|
||||||
|
|
||||||
|
While MySQL tuner itself will not make any changes to your server, blindly implementing its recommendations without understanding the impact can cause issues.
|
||||||
|
|
||||||
|
Always ensure you understand the implications of each suggestion before applying it to your server.
|
||||||
|
|
||||||
|
**Question: Can I use MySQL tuner for optimizing other database systems like PostgreSQL or SQL Server ?**
|
||||||
|
|
||||||
|
MySQL tuner is specifically designed for MySQL servers.
|
||||||
|
To optimize other database systems, you would need to use tools designed for those systems, such as pgTune for PostgreSQL or SQL Server's built-in performance tools.
|
||||||
|
|
||||||
|
**Question: Does MySQL tuner support MariaDB and Percona Server ?**
|
||||||
|
|
||||||
|
Yes, MySQL tuner supports MariaDB and Percona Server since they are derivatives of MySQL and share a similar architecture. The script can analyze and provide recommendations for these systems as well.
|
||||||
|
|
||||||
|
**Question: What should I do if I need help with MySQL tuner or have questions about the recommendations ?**
|
||||||
|
|
||||||
|
If you need help with MySQL tuner or have questions about the recommendations provided by the script, you can consult the MySQL tuner documentation, seek advice from online forums, or consult a MySQL expert.
|
||||||
|
|
||||||
|
Be cautious when implementing changes to ensure the stability and performance of your server.
|
||||||
|
|
||||||
|
**Question: Will MySQLTuner fix my slow MySQL server ?**
|
||||||
|
|
||||||
|
**No.** MySQLTuner is a read only script. It won't write to any configuration files, change the status of any daemons. It will give you an overview of your server's performance and make some basic recommendations for improvements that you can make after it completes.
|
||||||
|
|
||||||
|
**Question: Can I fire my DBA now?**
|
||||||
|
|
||||||
|
**MySQLTuner will not replace your DBA in any form or fashion.**
|
||||||
|
|
||||||
|
If your DBA constantly takes your parking spot and steals your lunch from the fridge, then you may want to consider it - but that's your call.
|
||||||
|
|
||||||
|
**Question: Why does MySQLTuner keep asking me the login credentials for MySQL over and over?**
|
||||||
|
|
||||||
|
The script will try its best to log in via any means possible. It will check for ~/.my.cnf files, Plesk password files, and empty password root logins. If none of those are available, then you'll be prompted for a password. If you'd like the script to run in an automated fashion without user intervention, then create a .my.cnf file in your home directory which contains:
|
||||||
|
|
||||||
|
[client]
|
||||||
|
user=someusername
|
||||||
|
password=thatuserspassword
|
||||||
|
|
||||||
|
Once you create it, make sure it's owned by your user and the mode on the file is 0600. This should prevent the prying eyes from getting your database login credentials under normal conditions.
|
||||||
|
|
||||||
|
**Question: Is there another way to secure credentials on latest MySQL and MariaDB distributions ?**
|
||||||
|
|
||||||
|
You could use mysql_config_editor utilities.
|
||||||
|
~~~bash
|
||||||
|
$ mysql_config_editor set --login-path=client --user=someusername --password --host=localhost
|
||||||
|
Enter password: ********
|
||||||
|
~~~
|
||||||
|
After which, `~/.mylogin.cnf` will be created with the appropriate access.
|
||||||
|
|
||||||
|
To get information about stored credentials, use the following command:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$mysql_config_editor print
|
||||||
|
[client]
|
||||||
|
user = someusername
|
||||||
|
password = *****
|
||||||
|
host = localhost
|
||||||
|
```
|
||||||
|
|
||||||
|
**Question: What's minimum privileges needed by a specific mysqltuner user in database ?**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mysql>GRANT SELECT, PROCESS,EXECUTE, REPLICATION CLIENT,
|
||||||
|
SHOW DATABASES,SHOW VIEW
|
||||||
|
ON *.*
|
||||||
|
TO 'mysqltuner'@'localhost' identified by pwd1234;
|
||||||
|
```
|
||||||
|
|
||||||
|
**Question: It's not working on my OS! What gives?!**
|
||||||
|
|
||||||
|
These kinds of things are bound to happen. Here are the details I need from you to investigate the issue:
|
||||||
|
|
||||||
|
* OS and OS version
|
||||||
|
* Architecture (x86, x86_64, IA64, Commodore 64)
|
||||||
|
* Exact MySQL version
|
||||||
|
* Where you obtained your MySQL version (OS package, source, etc)
|
||||||
|
* The full text of the error
|
||||||
|
* A copy of SHOW VARIABLES and SHOW GLOBAL STATUS output (if possible)
|
||||||
|
|
||||||
|
**Question: How to perform CVE vulnerability checks?**
|
||||||
|
|
||||||
|
* Download vulnerabilities.csv from this repository.
|
||||||
|
* use option --cvefile to perform CVE checks
|
||||||
|
|
||||||
|
**Question: How to use mysqltuner from a remote host?**
|
||||||
|
Thanks to [@rolandomysqldba](http://dba.stackexchange.com/users/877/rolandomysqldba)
|
||||||
|
|
||||||
|
* You will still have to connect like a mysql client:
|
||||||
|
|
||||||
|
Connection and Authentication
|
||||||
|
|
||||||
|
--host <hostname> Connect to a remote host to perform tests (default: localhost)
|
||||||
|
--socket <socket> Use a different socket for a local connection
|
||||||
|
--port <port> Port to use for connection (default: 3306)
|
||||||
|
--user <username> Username to use for authentication
|
||||||
|
--pass <password> Password to use for authentication
|
||||||
|
--defaults-file <path> defaults file for credentials
|
||||||
|
|
||||||
|
Since you are using a remote host, use parameters to supply values from the OS
|
||||||
|
|
||||||
|
--forcemem <size> Amount of RAM installed in megabytes
|
||||||
|
--forceswap <size> Amount of swap memory configured in megabytes
|
||||||
|
|
||||||
|
* You may have to contact your remote SysAdmin to ask how much RAM and swap you have
|
||||||
|
|
||||||
|
If the database has too many tables, or very large table, use this:
|
||||||
|
|
||||||
|
--skipsize Don't enumerate tables and their types/sizes (default: on)
|
||||||
|
(Recommended for servers with many tables)
|
||||||
|
|
||||||
|
**Question: Can I install this project using homebrew on Apple Macintosh?**
|
||||||
|
|
||||||
|
Yes! `brew install mysqltuner` can be used to install this application using [homebrew](https://brew.sh/) on Apple Macintosh.
|
||||||
|
|
||||||
|
MySQLTuner and Vagrant
|
||||||
|
--
|
||||||
|
**MySQLTuner** contains following Vagrant configurations:
|
||||||
|
* Fedora Core 30 / Docker
|
||||||
|
|
||||||
|
**Vagrant File** is stored in Vagrant subdirectory.
|
||||||
|
* Follow following step after vagrant installation:
|
||||||
|
$ vagrant up
|
||||||
|
|
||||||
|
**MySQLTuner** contains a Vagrant configurations for test purpose and development
|
||||||
|
* Install VirtualBox and Vagrant
|
||||||
|
* https://www.virtualbox.org/wiki/Downloads
|
||||||
|
* https://www.vagrantup.com/downloads.html
|
||||||
|
* Clone repository
|
||||||
|
* git clone https://github.com/major/MySQLTuner-perl.git
|
||||||
|
* Install Vagrant plugins vagrant-hostmanager and vagrant-vbguest
|
||||||
|
* vagrant plugin install vagrant-hostmanager
|
||||||
|
* vagrant plugin install vagrant-vbguest
|
||||||
|
* Add Fedora Core 30 box for official Fedora Download Website
|
||||||
|
* vagrant box add --name generic/fedora30
|
||||||
|
* Create a data directory
|
||||||
|
* mkdir data
|
||||||
|
|
||||||
|
|
||||||
|
## setup test environments
|
||||||
|
|
||||||
|
$ sh build/createTestEnvs.sh
|
||||||
|
|
||||||
|
$ source build/bashrc
|
||||||
|
$ mysql_percona80 sakila
|
||||||
|
sakila> ...
|
||||||
|
|
||||||
|
$ docker images
|
||||||
|
mariadb 10.1 fc612450e1f1 12 days ago 352MB
|
||||||
|
mariadb 10.2 027b7c57b8c6 12 days ago 340MB
|
||||||
|
mariadb 10.3 47dff68107c4 12 days ago 343MB
|
||||||
|
mariadb 10.4 92495405fc36 12 days ago 356MB
|
||||||
|
mysql 5.6 95e0fc47b096 2 weeks ago 257MB
|
||||||
|
mysql 5.7 383867b75fd2 2 weeks ago 373MB
|
||||||
|
mysql 8.0 b8fd9553f1f0 2 weeks ago 445MB
|
||||||
|
percona/percona-server 5.7 ddd245ed3496 5 weeks ago 585MB
|
||||||
|
percona/percona-server 5.6 ed0a36e0cf1b 6 weeks ago 421MB
|
||||||
|
percona/percona-server 8.0 390ae97d57c6 6 weeks ago 697MB
|
||||||
|
mariadb 5.5 c7bf316a4325 4 months ago 352MB
|
||||||
|
mariadb 10.0 d1bde56970c6 4 months ago 353MB
|
||||||
|
mysql 5.5 d404d78aa797 4 months ago 205MB
|
||||||
|
|
||||||
|
$ docker ps
|
||||||
|
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||||
|
da2be9b050c9 mariadb:5.5 "docker-entrypoint.s…" 7 hours ago Up 7 hours 0.0.0.0:5311->3306/tcp mariadb55
|
||||||
|
5deca25d5ac8 mariadb:10.0 "docker-entrypoint.s…" 7 hours ago Up 7 hours 0.0.0.0:5310->3306/tcp mariadb100
|
||||||
|
73aaeb37e2c2 mariadb:10.1 "docker-entrypoint.s…" 7 hours ago Up 7 hours 0.0.0.0:5309->3306/tcp mariadb101
|
||||||
|
72ffa77e01ec mariadb:10.2 "docker-entrypoint.s…" 7 hours ago Up 7 hours 0.0.0.0:5308->3306/tcp mariadb102
|
||||||
|
f5996f2041df mariadb:10.3 "docker-entrypoint.s…" 7 hours ago Up 7 hours 0.0.0.0:5307->3306/tcp mariadb103
|
||||||
|
4890c52372bb mariadb:10.4 "docker-entrypoint.s…" 7 hours ago Up 7 hours 0.0.0.0:5306->3306/tcp mariadb104
|
||||||
|
6b9dc078e921 percona/percona-server:5.6 "/docker-entrypoint.…" 7 hours ago Up 7 hours 0.0.0.0:4308->3306/tcp percona56
|
||||||
|
3a4c7c826d4c percona/percona-server:5.7 "/docker-entrypoint.…" 7 hours ago Up 7 hours 0.0.0.0:4307->3306/tcp percona57
|
||||||
|
3dda408c91b0 percona/percona-server:8.0 "/docker-entrypoint.…" 7 hours ago Up 7 hours 33060/tcp, 0.0.0.0:4306->3306/tcp percona80
|
||||||
|
600a4e7e9dcd mysql:5.5 "docker-entrypoint.s…" 7 hours ago Up 7 hours 0.0.0.0:3309->3306/tcp mysql55
|
||||||
|
4bbe54342e5d mysql:5.6 "docker-entrypoint.s…" 7 hours ago Up 7 hours 0.0.0.0:3308->3306/tcp mysql56
|
||||||
|
a49783249a11 mysql:5.7 "docker-entrypoint.s…" 7 hours ago Up 7 hours 33060/tcp, 0.0.0.0:3307->3306/tcp mysql57
|
||||||
|
d985820667c2 mysql:8.0 "docker-entrypoint.s…" 7 hours ago Up 7 hours 0.0.0.0:3306->3306/tcp, 33060/tcp mysql 8 0
|
||||||
|
|
||||||
|
|
||||||
|
Contributions welcome !
|
||||||
|
--
|
||||||
|
|
||||||
|
How to contribute using Pull Request ? Follow this guide : [Pull request creation](https://opensource.com/article/19/7/create-pull-request-github)
|
||||||
|
|
||||||
|
Simple steps to create a pull request:
|
||||||
|
--
|
||||||
|
|
||||||
|
- Fork this Github project
|
||||||
|
- Clone it to your local system
|
||||||
|
- Make a new branch
|
||||||
|
- Make your changes
|
||||||
|
- Push it back to your repo
|
||||||
|
- Click the Compare & pull request button
|
||||||
|
- Click Create pull request to open a new pull request
|
||||||
|
|
195
README.ru.md
195
README.ru.md
|
@ -1,22 +1,24 @@
|
||||||
MySQLTuner-perl
|

|
||||||
====
|
|
||||||
[](https://travis-ci.org/major/MySQLTuner-perl)
|
[](https://www.buymeacoffee.com/jmrenouard)
|
||||||
|
|
||||||
[](http://opensource.box.com/badges)
|
[](http://opensource.box.com/badges)
|
||||||
[](http://opensource.box.com/badges)
|
[](http://opensource.box.com/badges)
|
||||||
[](http://isitmaintained.com/project/major/MySQLTuner-perl "Average time to resolve an issue")
|
[](http://isitmaintained.com/project/major/MySQLTuner-perl "Average time to resolve an issue")
|
||||||
[](http://isitmaintained.com/project/major/MySQLTuner-perl "Percentage of issues still open")
|
[](http://isitmaintained.com/project/major/MySQLTuner-perl "Percentage of issues still open")
|
||||||
[](https://opensource.org/licenses/GPL-3.0/)
|
[](https://opensource.org/licenses/GPL-3.0/)
|
||||||
|
|
||||||
**MySQLTuner** - это скрипт, написанный на Perl, который позволяет быстро произвести осмотр текущего состояния сервера баз данных MySQL
|
|
||||||
и составить рекомендации для увеличения производительности и стабильности работы. Выводятся текущие параметры конфигурации
|
**MySQLTuner** - это скрипт, написанный на Perl, который позволяет быстро произвести осмотр текущего состояния сервера баз данных MySQL
|
||||||
|
и составить рекомендации для увеличения производительности и стабильности работы. Выводятся текущие параметры конфигурации
|
||||||
и информация о состоянии в формате отчета с основными подсказками по оптимизации.
|
и информация о состоянии в формате отчета с основными подсказками по оптимизации.
|
||||||
|
|
||||||
**MySQLTuner** поддерживает порядка 300 показателей для MySQL/MariaDB/Percona Server последних версий.
|
**MySQLTuner** поддерживает порядка 300 показателей для MySQL/MariaDB/Percona Server последних версий.
|
||||||
|
|
||||||
**MySQLTuner** поддерживает сбор показателей для множества таких конфигураций, как [Galera Cluster](http://galeracluster.com/), [TokuDB](https://www.percona.com/software/mysql-database/percona-tokudb), [Performance schema](https://github.com/mysql/mysql-sys), метрики ОС Linux, [InnoDB](http://dev.mysql.com/doc/refman/5.7/en/innodb-storage-engine.html), [MyISAM](http://dev.mysql.com/doc/refman/5.7/en/myisam-storage-engine.html), [Aria](https://mariadb.com/kb/en/mariadb/aria/), ...
|
**MySQLTuner** поддерживает сбор показателей для множества таких конфигураций, как [Galera Cluster](http://galeracluster.com/), [TokuDB](https://www.percona.com/software/mysql-database/percona-tokudb), [Performance schema](https://github.com/mysql/mysql-sys), метрики ОС Linux, [InnoDB](http://dev.mysql.com/doc/refman/5.7/en/innodb-storage-engine.html), [MyISAM](http://dev.mysql.com/doc/refman/5.7/en/myisam-storage-engine.html), [Aria](https://mariadb.com/kb/en/mariadb/aria/), ...
|
||||||
|
|
||||||
|
|
||||||
Вы можете найти больше информации об этих показателях на
|
Вы можете найти больше информации об этих показателях на
|
||||||
[Indicators description](https://github.com/major/MySQLTuner-perl/blob/master/INTERNALS.md).
|
[Indicators description](https://github.com/major/MySQLTuner-perl/blob/master/INTERNALS.md).
|
||||||
|
|
||||||
|
|
||||||
|
@ -33,40 +35,58 @@ MySQLTuner нуждается в вас:
|
||||||
|
|
||||||
## Количество "звезд" по времени
|
## Количество "звезд" по времени
|
||||||
|
|
||||||
[](https://starcharts.herokuapp.com/major/MySQLTuner-perl)
|
[](https://starchart.cc/major/MySQLTuner-perl)
|
||||||
|
|
||||||
Совместимость
|
Совместимость
|
||||||
====
|
====
|
||||||
|
Результаты тестов:
|
||||||
|
* MySQL 8 (полная поддержка, проверка пароля не работает)
|
||||||
* MySQL 5.7 (полная поддержка)
|
* MySQL 5.7 (полная поддержка)
|
||||||
* MySQL 5.6 (полная поддержка)
|
* MySQL 5.6 (полная поддержка)
|
||||||
* MySQL 5.5 (полная поддержка)
|
* MySQL 5.5 (полная поддержка)
|
||||||
|
* MariaDB 10.4 (полная поддержка)
|
||||||
* MariaDB 10.3 (полная поддержка)
|
* MariaDB 10.3 (полная поддержка)
|
||||||
* MariaDB 10.2 (полная поддержка)
|
* MariaDB 10.2 (полная поддержка)
|
||||||
* MariaDB 10.1 (полная поддержка)
|
* MariaDB 10.1 (полная поддержка)
|
||||||
* MariaDB 10.0 (полная поддержка)
|
* MariaDB 10.0 (полная поддержка, последние 6 месяцeв)
|
||||||
|
* MariaDB 5.5 (полная поддержка, но без поддержки от MariaDB)
|
||||||
|
* Percona Server 8.0 (полная поддержка, проверка пароля не работает)
|
||||||
* Percona Server 5.7 (полная поддержка)
|
* Percona Server 5.7 (полная поддержка)
|
||||||
* Percona Server 5.6 (полная поддержка)
|
* Percona Server 5.6 (полная поддержка)
|
||||||
* Percona XtraDB cluster (полная поддержка)
|
* Percona XtraDB cluster (частичная поддержка, нет тестового окружения)
|
||||||
* MySQL 3.23, 4.0, 4.1, 5.0, 5.1 (частичная поддержка - устаревшие версии)
|
|
||||||
|
* Mysql Replications (частичная поддержка, нет тестового окружения)
|
||||||
|
* Galera replication (частичная поддержка, нет тестового окружения)
|
||||||
|
|
||||||
|
* MySQL 3.23, 4.0, 4.1, 5.0, 5.1, 5.5 (частичная поддержка - устаревшие версии)
|
||||||
|
|
||||||
|
*** НЕ ПОДДЕРЖИВАЕМЫЕ ОКРУЖЕНИЯ - НУЖНА ПОМОЩЬ С НИМИ :) ***
|
||||||
|
* Windows не поддерживается на данное время (Необходима помощь!!!!!)
|
||||||
|
* Облачные сервисы(cloud based) не поддерживаются на данное время (Необходима помощь!!!!!)
|
||||||
|
|
||||||
|
* Поддержка детектирования CVE уязвимостей из [https://cve.mitre.org](https://cve.mitre.org)
|
||||||
|
|
||||||
|
*** МИНИМАЛЬНЫЕ ТРЕБОВАНИЯ ***
|
||||||
|
|
||||||
* Perl 5.6 или более поздний (с пакетом [perl-doc](http://search.cpan.org/~dapm/perl-5.14.4/pod/perldoc.pod))
|
* Perl 5.6 или более поздний (с пакетом [perl-doc](http://search.cpan.org/~dapm/perl-5.14.4/pod/perldoc.pod))
|
||||||
* Операционная система семейства Unix/Linux (протестировано на Linux, различных вариациях BSD и Solaris)
|
* Операционная система семейства Unix/Linux (протестировано на Linux, различных вариациях BSD и Solaris)
|
||||||
* Windows не поддерживается на данное время (Необходима помощь!!!!!)
|
|
||||||
* Неограниченный доступ на чтение для MySQL-сервера (Для работы с MySQL < 5.1 требуется root-доступ к серверу)
|
* Неограниченный доступ на чтение для MySQL-сервера (Для работы с MySQL < 5.1 требуется root-доступ к серверу)
|
||||||
* Поддержка детектирования CVE уязвимостей из [https://cve.mitre.org](https://cve.mitre.org)
|
|
||||||
|
|
||||||
Пожалуйста, прочитайте раздел ЧаВо, который расположен чуть ниже.
|
Пожалуйста, прочитайте раздел ЧаВо, который расположен чуть ниже.
|
||||||
|
|
||||||
***ПРЕДУПРЕЖДЕНИЕ***
|
***ПРЕДУПРЕЖДЕНИЕ***
|
||||||
--
|
--
|
||||||
Очень важно, чтобы вы имели представление о том, какие изменения вы
|
Очень важно, чтобы вы имели представление о том, какие изменения вы
|
||||||
вносите в параметры сервера баз данных MySQL. Если вы даже частично
|
вносите в параметры сервера баз данных MySQL. Если вы даже частично
|
||||||
не понимаете вывод отчета скрипта, или не понимаете рекомендации,
|
не понимаете вывод отчета скрипта, или не понимаете рекомендации,
|
||||||
которые делает скрипт, то вам лучше всего обратиться за помощью либо
|
которые делает скрипт, то вам лучше всего обратиться за помощью либо
|
||||||
к документации к серверу баз данных, либо ближайшему системному
|
к документации к серверу баз данных, либо ближайшему системному
|
||||||
администратору. Всегда проверяйте ваши изменения на тестовом сервере
|
администратору. Всегда проверяйте ваши изменения на тестовом сервере
|
||||||
и всегда будьте готовы к тому, что улучшения в одной области могут иметь
|
и всегда будьте готовы к тому, что улучшения в одной области могут иметь
|
||||||
отрицательный эфект в работе MySQL в другой области.
|
отрицательный эфект в работе MySQL в другой области.
|
||||||
|
|
||||||
|
Так же **важно** подождать, что бы сервер баз данных отработал хотя бы день, для получения точных реультатов. Запуск **mysqltuner** на только что перезапущенном сервере баз данных, по факту полностью бесполезен.
|
||||||
|
|
||||||
**Серьезно - прочитайте раздел ЧаВо, который расположен чуть ниже.**
|
**Серьезно - прочитайте раздел ЧаВо, который расположен чуть ниже.**
|
||||||
|
|
||||||
|
|
||||||
|
@ -85,22 +105,62 @@ MySQLTuner нуждается в вас:
|
||||||
Загрузка/Установка
|
Загрузка/Установка
|
||||||
--
|
--
|
||||||
|
|
||||||
Вы можете скачать весь репозиторий с помощью 'git clone' c URL текущего репозитория. Самый простой и короткий метод:
|
Доступны несколько методов:
|
||||||
|
1) Прямая загрузка скрипта(самый простой и короткий метод):
|
||||||
|
```
|
||||||
|
wget http://mysqltuner.pl/ -O mysqltuner.pl
|
||||||
|
wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/basic_passwords.txt -O basic_passwords.txt
|
||||||
|
wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/vulnerabilities.csv -O vulnerabilities.csv
|
||||||
|
```
|
||||||
|
|
||||||
wget http://mysqltuner.pl/ -O mysqltuner.pl
|
2) Вы можете скачать весь репозиторий с помощью `git clone` или `git clone --depth 1 -b master` c URL текущего репозитория.
|
||||||
wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/basic_passwords.txt -O basic_passwords.txt
|
|
||||||
wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/vulnerabilities.csv -O vulnerabilities.csv
|
|
||||||
perl mysqltuner.pl
|
|
||||||
|
|
||||||
Конечно, вам нужно будет добавить права на выполнение скрипта (chmod +x mysqltuner.pl), если вы хотите запускать его напрямую, без указания perl.
|
|
||||||
|
|
||||||
|
Оциональная установка Sysschema для MySQL 5.6
|
||||||
|
--
|
||||||
|
|
||||||
|
Sysschema по умолчанию установлена на MySQL 5.7 и MySQL 8 от Oracle.
|
||||||
|
В MySQL 5.6/5.7/8 по умолчанию performance schema включена.
|
||||||
|
Для версий старше 5.6 вы можете создать новую базу данных sys, содержащую очень полезный взгляд на Performance schema следующими командами:
|
||||||
|
|
||||||
|
curl "https://codeload.github.com/mysql/mysql-sys/zip/master" > sysschema.zip
|
||||||
|
# check zip file
|
||||||
|
unzip -l sysschema.zip
|
||||||
|
unzip sysschema.zip
|
||||||
|
cd mysql-sys-master
|
||||||
|
mysql -uroot -p < sys_56.sql
|
||||||
|
|
||||||
|
Опциональная установка Performance schema и Sysschema для MariaDB 10.x
|
||||||
|
--
|
||||||
|
|
||||||
|
Sysschema не установлена по умолчанию на MariaDB 10.x.
|
||||||
|
А performance schema по умолчанию отключена в MariaDB. Для активации ее требуется включить в конфигурационном файле my.cnf:
|
||||||
|
|
||||||
|
[mysqld]
|
||||||
|
performance_schema = on
|
||||||
|
|
||||||
|
Вы можете создать новую базу данных sys, содержащую очень полезный взгляд на Performance schema следующими командами:
|
||||||
|
|
||||||
|
curl "https://codeload.github.com/FromDual/mariadb-sys/zip/master" > mariadb-sys.zip
|
||||||
|
# check zip file
|
||||||
|
unzip -l mariadb-sys.zip
|
||||||
|
unzip mariadb-sys.zip
|
||||||
|
cd mariadb-sys-master/
|
||||||
|
mysql -u root -p < ./sys_10.sql
|
||||||
|
|
||||||
|
Ошибки и их решения при установке performance schema
|
||||||
|
|
||||||
|
ERROR at line 21: Failed to open file './tables/sys_config_data_10.sql -- ported', error: 2
|
||||||
|
Посмотрите на #452 решение, данное @ericx
|
||||||
|
|
||||||
Примеры использования
|
Примеры использования
|
||||||
--
|
--
|
||||||
|
|
||||||
__Пример:__ Минимальный локальный запуск
|
__Пример:__ Минимальный локальный запуск
|
||||||
|
|
||||||
perl mysqltuner.pl
|
perl mysqltuner.pl --host 127.0.0.1
|
||||||
|
|
||||||
|
Конечно, вам нужно будет добавить права на выполнение скрипта (chmod +x mysqltuner.pl), если вы хотите запускать его напрямую, без указания perl.
|
||||||
|
|
||||||
__Пример:__ Минимальный удаленный запуск
|
__Пример:__ Минимальный удаленный запуск
|
||||||
|
|
||||||
|
@ -109,8 +169,8 @@ __Пример:__ Минимальный удаленный запуск
|
||||||
__Пример:__ Включение максимамльного вывода информации о MySQL/MariaDb без отладочной информации
|
__Пример:__ Включение максимамльного вывода информации о MySQL/MariaDb без отладочной информации
|
||||||
|
|
||||||
perl mysqltuner.pl --verbose
|
perl mysqltuner.pl --verbose
|
||||||
perl mysqltuner.pl --buffers --dbstat --idxstat --sysstat --pfstat
|
perl mysqltuner.pl --buffers --dbstat --idxstat --sysstat --pfstat --tbstat
|
||||||
|
|
||||||
|
|
||||||
__Пример:__ Включение проверки на CVE уязвимости для MariaDB или MySQL
|
__Пример:__ Включение проверки на CVE уязвимости для MariaDB или MySQL
|
||||||
|
|
||||||
|
@ -120,7 +180,7 @@ __Пример:__ Запись результата в файл с отобра
|
||||||
|
|
||||||
perl mysqltuner.pl --outputfile /tmp/result_mysqltuner.txt
|
perl mysqltuner.pl --outputfile /tmp/result_mysqltuner.txt
|
||||||
|
|
||||||
__Пример:__ Запись результата в файл **без вывода информации**
|
__Пример:__ Запись результата в файл **без вывода информации**
|
||||||
|
|
||||||
perl mysqltuner.pl --silent --outputfile /tmp/result_mysqltuner.txt
|
perl mysqltuner.pl --silent --outputfile /tmp/result_mysqltuner.txt
|
||||||
|
|
||||||
|
@ -132,6 +192,10 @@ __Пример:__ Включение вывода отладочной инфо
|
||||||
|
|
||||||
perl mysqltuner.pl --debug
|
perl mysqltuner.pl --debug
|
||||||
|
|
||||||
|
__Пример:__ Обновление MySQLTuner и файлов с данными (пароль и cve), если необходимо.
|
||||||
|
|
||||||
|
perl mysqltuner.pl --checkversion --updateversion
|
||||||
|
|
||||||
ЧаВо
|
ЧаВо
|
||||||
--
|
--
|
||||||
|
|
||||||
|
@ -145,12 +209,12 @@ __Пример:__ Включение вывода отладочной инфо
|
||||||
|
|
||||||
**Вопрос: Почему MySQLTuner каждый раз запрашивает доступы в MySQL?**
|
**Вопрос: Почему MySQLTuner каждый раз запрашивает доступы в MySQL?**
|
||||||
|
|
||||||
Скрипт пытается использовать лучшие способы войти из возможных. Он проверяет ~/.my.cnf файлы, файлы паролей Plesk и пробует пустой пароль для пользователя root. Если ни один из этих способов не сработал, то запрашивается ввод пароля. Если вы хотите, чтобы скрипт работал автоматически, создайте в своей домашней директории файл .my.cnf, содержащий:
|
Скрипт пытается использовать лучшие способы войти из возможных. Он проверяет ~/.my.cnf файлы, файлы паролей Plesk и пробует пустой пароль для пользователя root. Если ни один из этих способов не сработал, то запрашивается ввод пароля. Если вы хотите, чтобы скрипт работал автоматически, создайте в своей домашней директории файл .my.cnf, содержащий:
|
||||||
|
|
||||||
[client]
|
[client]
|
||||||
user=distributions
|
user=distributions
|
||||||
pass=thatuserspassword
|
password=thatuserspassword
|
||||||
|
|
||||||
Сразу после создания файла убедитесь, что его владельцем является ваш пользователь, а права на файл - 0600. Это защитит ваш логин и пароль от базы данных от любопытных глаз в нормальных условиях. Но у вас не будет выбора, если появится [T-1000 в униформе полицейского из Лос-Анджелеса](https://ru.wikipedia.org/wiki/T-1000) и потребует доступы от вашей базы данных.
|
Сразу после создания файла убедитесь, что его владельцем является ваш пользователь, а права на файл - 0600. Это защитит ваш логин и пароль от базы данных от любопытных глаз в нормальных условиях. Но у вас не будет выбора, если появится [T-1000 в униформе полицейского из Лос-Анджелеса](https://ru.wikipedia.org/wiki/T-1000) и потребует доступы от вашей базы данных.
|
||||||
|
|
||||||
**Вопрос: Есть ли другой способ безопасно сохранить данные для входа в последних версиях MySQL и MariaDB?**
|
**Вопрос: Есть ли другой способ безопасно сохранить данные для входа в последних версиях MySQL и MariaDB?**
|
||||||
|
@ -171,7 +235,7 @@ __Пример:__ Включение вывода отладочной инфо
|
||||||
|
|
||||||
**Вопрос: Какие минимальные привелегии нужны для специального пользователя базы данных mysqltuner?**
|
**Вопрос: Какие минимальные привелегии нужны для специального пользователя базы данных mysqltuner?**
|
||||||
|
|
||||||
mysql>GRANT SELECT, PROCESS,EXECUTE, REPLICATION CLIENT,SHOW DATABASES,SHOW VIEW ON *.* FOR 'mysqltuner'@'localhost' identified by pwd1234;
|
mysql>GRANT SELECT, PROCESS,EXECUTE, REPLICATION CLIENT,SHOW DATABASES,SHOW VIEW ON *.* TO 'mysqltuner'@'localhost' identified by pwd1234;
|
||||||
|
|
||||||
**Вопрос: Это не работает на моей ОС! Что делать?!**
|
**Вопрос: Это не работает на моей ОС! Что делать?!**
|
||||||
|
|
||||||
|
@ -199,7 +263,7 @@ __Пример:__ Включение вывода отладочной инфо
|
||||||
--host <hostname> Connect to a remote host to perform tests (default: localhost)
|
--host <hostname> Connect to a remote host to perform tests (default: localhost)
|
||||||
--socket <socket> Use a different socket for a local connection
|
--socket <socket> Use a different socket for a local connection
|
||||||
--port <port> Port to use for connection (default: 3306)
|
--port <port> Port to use for connection (default: 3306)
|
||||||
--user <username> Username to use for authentication
|
--user <username> Username to use for authentication
|
||||||
--pass <password> Password to use for authentication
|
--pass <password> Password to use for authentication
|
||||||
--defaults-file <path> defaulfs file for credentials
|
--defaults-file <path> defaulfs file for credentials
|
||||||
|
|
||||||
|
@ -222,15 +286,11 @@ __Пример:__ Включение вывода отладочной инфо
|
||||||
MySQLTuner и Vagrant
|
MySQLTuner и Vagrant
|
||||||
--
|
--
|
||||||
**MySQLTuner** содержится в следующих конфигурациях Vagrant:
|
**MySQLTuner** содержится в следующих конфигурациях Vagrant:
|
||||||
* Fedora Core 23 / MariaDB 10.0
|
* Fedora Core 10 / Docker
|
||||||
* Fedora Core 23 / MariaDB 10.1
|
|
||||||
* Fedora Core 23 / MySQL 5.6
|
**Vagrant File** is stored in Vagrant subdirectory.
|
||||||
* Fedora Core 23 / MySQL 5.7
|
* Follow following step after vagrant installation:
|
||||||
|
$ vagrant up
|
||||||
**Vagrant File** are stored in Vagrant subdirectory.
|
|
||||||
* Follow this 2 steps after vagrant installation:
|
|
||||||
* Rename VagrantFile_for_Mxxx into Vagrantfile
|
|
||||||
* vagrant up
|
|
||||||
|
|
||||||
**MySQLTuner** contains a Vagrant configurations for test purpose and development
|
**MySQLTuner** contains a Vagrant configurations for test purpose and development
|
||||||
* Install VirtualBox and Vagrant
|
* Install VirtualBox and Vagrant
|
||||||
|
@ -241,14 +301,50 @@ MySQLTuner и Vagrant
|
||||||
* Install Vagrant plugins vagrant-hostmanager and vagrant-vbguest
|
* Install Vagrant plugins vagrant-hostmanager and vagrant-vbguest
|
||||||
* vagrant plugin install vagrant-hostmanager
|
* vagrant plugin install vagrant-hostmanager
|
||||||
* vagrant plugin install vagrant-vbguest
|
* vagrant plugin install vagrant-vbguest
|
||||||
* Add Fedora Core 23 box for official Fedora Download Website
|
* Add Fedora Core 30 box for official Fedora Download Website
|
||||||
* vagrant box add --name fc23 https://download.fedoraproject.org/pub/fedora/linux/releases/23/Cloud/x86_64/Images/Fedora-Cloud-Base-Vagrant-23-20151030.x86_64.vagrant-virtualbox.box
|
* vagrant box add --name generic/fedora30
|
||||||
* Create a data directory
|
* Create a data directory
|
||||||
* mkdir data
|
* mkdir data
|
||||||
* Rename Vagrantfile_MariaDB10.0 into Vagrantfile
|
|
||||||
* cp MySQLTuner-perl/Vagrant/Vagrantfile_for_MariaDB10.0 Vagrantfile
|
|
||||||
* Start vagrant
|
## Настройка тестовых окружений
|
||||||
* vagrant up
|
|
||||||
|
$ sh build/createTestEnvs.sh
|
||||||
|
|
||||||
|
$ source build/bashrc
|
||||||
|
$ mysql_percona80 sakila
|
||||||
|
sakila> ...
|
||||||
|
|
||||||
|
$ docker images
|
||||||
|
mariadb 10.1 fc612450e1f1 12 days ago 352MB
|
||||||
|
mariadb 10.2 027b7c57b8c6 12 days ago 340MB
|
||||||
|
mariadb 10.3 47dff68107c4 12 days ago 343MB
|
||||||
|
mariadb 10.4 92495405fc36 12 days ago 356MB
|
||||||
|
mysql 5.6 95e0fc47b096 2 weeks ago 257MB
|
||||||
|
mysql 5.7 383867b75fd2 2 weeks ago 373MB
|
||||||
|
mysql 8.0 b8fd9553f1f0 2 weeks ago 445MB
|
||||||
|
percona/percona-server 5.7 ddd245ed3496 5 weeks ago 585MB
|
||||||
|
percona/percona-server 5.6 ed0a36e0cf1b 6 weeks ago 421MB
|
||||||
|
percona/percona-server 8.0 390ae97d57c6 6 weeks ago 697MB
|
||||||
|
mariadb 5.5 c7bf316a4325 4 months ago 352MB
|
||||||
|
mariadb 10.0 d1bde56970c6 4 months ago 353MB
|
||||||
|
mysql 5.5 d404d78aa797 4 months ago 205MB
|
||||||
|
|
||||||
|
$ docker ps
|
||||||
|
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||||
|
da2be9b050c9 mariadb:5.5 "docker-entrypoint.s…" 7 hours ago Up 7 hours 0.0.0.0:5311->3306/tcp mariadb55
|
||||||
|
5deca25d5ac8 mariadb:10.0 "docker-entrypoint.s…" 7 hours ago Up 7 hours 0.0.0.0:5310->3306/tcp mariadb100
|
||||||
|
73aaeb37e2c2 mariadb:10.1 "docker-entrypoint.s…" 7 hours ago Up 7 hours 0.0.0.0:5309->3306/tcp mariadb101
|
||||||
|
72ffa77e01ec mariadb:10.2 "docker-entrypoint.s…" 7 hours ago Up 7 hours 0.0.0.0:5308->3306/tcp mariadb102
|
||||||
|
f5996f2041df mariadb:10.3 "docker-entrypoint.s…" 7 hours ago Up 7 hours 0.0.0.0:5307->3306/tcp mariadb103
|
||||||
|
4890c52372bb mariadb:10.4 "docker-entrypoint.s…" 7 hours ago Up 7 hours 0.0.0.0:5306->3306/tcp mariadb104
|
||||||
|
6b9dc078e921 percona/percona-server:5.6 "/docker-entrypoint.…" 7 hours ago Up 7 hours 0.0.0.0:4308->3306/tcp percona56
|
||||||
|
3a4c7c826d4c percona/percona-server:5.7 "/docker-entrypoint.…" 7 hours ago Up 7 hours 0.0.0.0:4307->3306/tcp percona57
|
||||||
|
3dda408c91b0 percona/percona-server:8.0 "/docker-entrypoint.…" 7 hours ago Up 7 hours 33060/tcp, 0.0.0.0:4306->3306/tcp percona80
|
||||||
|
600a4e7e9dcd mysql:5.5 "docker-entrypoint.s…" 7 hours ago Up 7 hours 0.0.0.0:3309->3306/tcp mysql55
|
||||||
|
4bbe54342e5d mysql:5.6 "docker-entrypoint.s…" 7 hours ago Up 7 hours 0.0.0.0:3308->3306/tcp mysql56
|
||||||
|
a49783249a11 mysql:5.7 "docker-entrypoint.s…" 7 hours ago Up 7 hours 33060/tcp, 0.0.0.0:3307->3306/tcp mysql57
|
||||||
|
d985820667c2 mysql:8.0 "docker-entrypoint.s…" 7 hours ago Up 7 hours 0.0.0.0:3306->3306/tcp, 33060/tcp mysql 8 0
|
||||||
|
|
||||||
MySQLTuner нуждается в Вас:
|
MySQLTuner нуждается в Вас:
|
||||||
===
|
===
|
||||||
|
@ -258,4 +354,3 @@ MySQLTuner нуждается в Вас:
|
||||||
* Присоединяйтесь, пожалуйста, к нашему трекеру ошибок [GitHub tracker](https://github.com/major/MySQLTuner-perl/issues).
|
* Присоединяйтесь, пожалуйста, к нашему трекеру ошибок [GitHub tracker](https://github.com/major/MySQLTuner-perl/issues).
|
||||||
* Руководство по поддержке проекта доступно на [MySQLTuner contributing guide](https://github.com/major/MySQLTuner-perl/blob/master/CONTRIBUTING.md)
|
* Руководство по поддержке проекта доступно на [MySQLTuner contributing guide](https://github.com/major/MySQLTuner-perl/blob/master/CONTRIBUTING.md)
|
||||||
* Ставьте "звезды" **проекту MySQLTuner** на [MySQLTuner Git Hub Project](https://github.com/major/MySQLTuner-perl)
|
* Ставьте "звезды" **проекту MySQLTuner** на [MySQLTuner Git Hub Project](https://github.com/major/MySQLTuner-perl)
|
||||||
|
|
||||||
|
|
21
SECURITY.md
Normal file
21
SECURITY.md
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
# Security Policy
|
||||||
|
|
||||||
|
## Supported Versions
|
||||||
|
|
||||||
|
Use this section to tell people about which versions of your project are
|
||||||
|
currently being supported with security updates.
|
||||||
|
|
||||||
|
| Version | Supported |
|
||||||
|
| ------- | ------------------ |
|
||||||
|
| 5.1.x | :white_check_mark: |
|
||||||
|
| 5.0.x | :x: |
|
||||||
|
| 4.0.x | :white_check_mark: |
|
||||||
|
| < 4.0 | :x: |
|
||||||
|
|
||||||
|
## Reporting a Vulnerability
|
||||||
|
|
||||||
|
Use this section to tell people how to report a vulnerability.
|
||||||
|
|
||||||
|
Tell them where to go, how often they can expect to get an update on a
|
||||||
|
reported vulnerability, what to expect if the vulnerability is accepted or
|
||||||
|
declined, etc.
|
67
USAGE.md
67
USAGE.md
|
@ -1,6 +1,6 @@
|
||||||
# NAME
|
# NAME
|
||||||
|
|
||||||
MySQLTuner 1.7.14 - MySQL High Performance Tuning Script
|
MySQLTuner 2.6.0 - MySQL High Performance Tuning Script
|
||||||
|
|
||||||
# IMPORTANT USAGE GUIDELINES
|
# IMPORTANT USAGE GUIDELINES
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@ You must provide the remote server's total memory when connecting to other serve
|
||||||
--host <hostname> Connect to a remote host to perform tests (default: localhost)
|
--host <hostname> Connect to a remote host to perform tests (default: localhost)
|
||||||
--socket <socket> Use a different socket for a local connection
|
--socket <socket> Use a different socket for a local connection
|
||||||
--port <port> Port to use for connection (default: 3306)
|
--port <port> Port to use for connection (default: 3306)
|
||||||
|
--protocol tcp Force TCP connection instead of socket
|
||||||
--user <username> Username to use for authentication
|
--user <username> Username to use for authentication
|
||||||
--userenv <envvar> Name of env variable which contains username to use for authentication
|
--userenv <envvar> Name of env variable which contains username to use for authentication
|
||||||
--pass <password> Password to use for authentication
|
--pass <password> Password to use for authentication
|
||||||
|
@ -22,47 +23,60 @@ You must provide the remote server's total memory when connecting to other serve
|
||||||
--mysqladmin <path> Path to a custom mysqladmin executable
|
--mysqladmin <path> Path to a custom mysqladmin executable
|
||||||
--mysqlcmd <path> Path to a custom mysql executable
|
--mysqlcmd <path> Path to a custom mysql executable
|
||||||
--defaults-file <path> Path to a custom .my.cnf
|
--defaults-file <path> Path to a custom .my.cnf
|
||||||
|
--defaults-extra-file <path> Path to an extra custom config file
|
||||||
|
--server-log <path> Path to explicit log file (error_log)
|
||||||
|
|
||||||
# PERFORMANCE AND REPORTING OPTIONS
|
# PERFORMANCE AND REPORTING OPTIONS
|
||||||
|
|
||||||
--skipsize Don't enumerate tables and their types/sizes (default: on)
|
--skipsize Don't enumerate tables and their types/sizes (default: on)
|
||||||
(Recommended for servers with many tables)
|
(Recommended for servers with many tables)
|
||||||
--skippassword Don't perform checks on user passwords(default: off)
|
--json Print result as JSON string
|
||||||
|
--prettyjson Print result as JSON formatted string
|
||||||
|
--skippassword Don't perform checks on user passwords (default: off)
|
||||||
--checkversion Check for updates to MySQLTuner (default: don't check)
|
--checkversion Check for updates to MySQLTuner (default: don't check)
|
||||||
--updateversion Check for updates to MySQLTuner and update when newer version is available (default: don't check)
|
--updateversion Check for updates to MySQLTuner and update when newer version is available (default: don't check)
|
||||||
--forcemem <size> Amount of RAM installed in megabytes
|
--forcemem <size> Amount of RAM installed in megabytes
|
||||||
--forceswap <size> Amount of swap memory configured in megabytes
|
--forceswap <size> Amount of swap memory configured in megabytes
|
||||||
--passwordfile <path> Path to a password file list(one password by line)
|
--passwordfile <path> Path to a password file list (one password by line)
|
||||||
|
--cvefile <path> CVE File for vulnerability checks
|
||||||
|
--outputfile <path> Path to a output txt file
|
||||||
|
--reportfile <path> Path to a report txt file
|
||||||
|
--template <path> Path to a template file
|
||||||
|
--dumpdir <path> Path to a directory where to dump information files
|
||||||
|
--feature <feature> Run a specific feature (see FEATURES section)
|
||||||
|
--dumpdir <path> information_schema tables and sys views are dumped in CSV in this path
|
||||||
|
|
||||||
# OUTPUT OPTIONS
|
# OUTPUT OPTIONS
|
||||||
|
|
||||||
--silent Don't output anything on screen
|
--silent Don't output anything on screen
|
||||||
|
--verbose Print out all options (default: no verbose, dbstat, idxstat, sysstat, tbstat, pfstat)
|
||||||
|
--color Print output in color
|
||||||
|
--nocolor Don't print output in color
|
||||||
--nogood Remove OK responses
|
--nogood Remove OK responses
|
||||||
--nobad Remove negative/suggestion responses
|
--nobad Remove negative/suggestion responses
|
||||||
--noinfo Remove informational responses
|
--noinfo Remove informational responses
|
||||||
--debug Print debug information
|
--debug Print debug information
|
||||||
--noprocess Consider no other process is running
|
--experimental Print experimental analysis (may fail)
|
||||||
|
--nondedicated Consider server is not dedicated to Db server usage only
|
||||||
|
--noprocess Consider no other process is running
|
||||||
--dbstat Print database information
|
--dbstat Print database information
|
||||||
--nodbstat Don't Print database information
|
--nodbstat Don't print database information
|
||||||
--tbstat Print table information
|
--tbstat Print table information
|
||||||
--notbstat Don't Print table information
|
--notbstat Don't print table information
|
||||||
|
--colstat Print column information
|
||||||
|
--nocolstat Don't print column information
|
||||||
--idxstat Print index information
|
--idxstat Print index information
|
||||||
--noidxstat Don't Print index information
|
--noidxstat Don't print index information
|
||||||
|
--nomyisamstat Don't print MyIsam information
|
||||||
--sysstat Print system information
|
--sysstat Print system information
|
||||||
--nosysstat Don't Print system information
|
--nosysstat Don't print system information
|
||||||
|
--nostructstat Don't print table structures information
|
||||||
--pfstat Print Performance schema
|
--pfstat Print Performance schema
|
||||||
--nopfstat Don't Print Performance schema
|
--nopfstat Don't print Performance schema
|
||||||
--verbose Prints out all options (default: no verbose, dbstat, idxstat, sysstat, tbstat, pfstat)
|
--bannedports Ports banned separated by comma (,)
|
||||||
|
--server-log Define specific error_log to analyze
|
||||||
--bannedports Ports banned separated by comma(,)
|
--maxportallowed Number of open ports allowable on this host
|
||||||
--maxportallowed Number of ports opened allowed on this hosts
|
|
||||||
--cvefile <path> CVE File for vulnerability checks
|
|
||||||
--nocolor Don't print output in color
|
|
||||||
--json Print result as JSON string
|
|
||||||
--buffers Print global and per-thread buffer values
|
--buffers Print global and per-thread buffer values
|
||||||
--outputfile <path> Path to a output txt file
|
|
||||||
--reportfile <path> Path to a report txt file
|
|
||||||
--template <path> Path to a template file
|
|
||||||
|
|
||||||
# PERLDOC
|
# PERLDOC
|
||||||
|
|
||||||
|
@ -79,6 +93,7 @@ You can find documentation for this module with the perldoc command.
|
||||||
# AUTHORS
|
# AUTHORS
|
||||||
|
|
||||||
Major Hayden - major@mhtx.net
|
Major Hayden - major@mhtx.net
|
||||||
|
Jean-Marie Renouard - jmrenouard@gmail.com
|
||||||
|
|
||||||
# CONTRIBUTORS
|
# CONTRIBUTORS
|
||||||
|
|
||||||
|
@ -116,14 +131,15 @@ Major Hayden - major@mhtx.net
|
||||||
- Jean-Marie Renouard
|
- Jean-Marie Renouard
|
||||||
- Stephan GroBberndt
|
- Stephan GroBberndt
|
||||||
- Christian Loos
|
- Christian Loos
|
||||||
|
- Long Radix
|
||||||
|
|
||||||
# SUPPORT
|
# SUPPORT
|
||||||
|
|
||||||
Bug reports, feature requests, and downloads at http://mysqltuner.com/
|
Bug reports, feature requests, and downloads at http://mysqltuner.pl/
|
||||||
|
|
||||||
Bug tracker can be found at https://github.com/major/MySQLTuner-perl/issues
|
Bug tracker can be found at https://github.com/major/MySQLTuner-perl/issues
|
||||||
|
|
||||||
Maintained by Major Hayden (major\\@mhtx.net) - Licensed under GPL
|
Maintained by Jean-Marie Renouard (jmrenouard\\@gmail.com) - Licensed under GPL
|
||||||
|
|
||||||
# SOURCE CODE
|
# SOURCE CODE
|
||||||
|
|
||||||
|
@ -133,11 +149,12 @@ Maintained by Major Hayden (major\\@mhtx.net) - Licensed under GPL
|
||||||
|
|
||||||
# COPYRIGHT AND LICENSE
|
# COPYRIGHT AND LICENSE
|
||||||
|
|
||||||
Copyright (C) 2006-2017 Major Hayden - major@mhtx.net
|
Copyright (C) 2006-2023 Major Hayden - major@mhtx.net
|
||||||
|
\# Copyright (C) 2015-2023 Jean-Marie Renouard - jmrenouard@gmail.com
|
||||||
|
|
||||||
For the latest updates, please visit http://mysqltuner.com/
|
For the latest updates, please visit http://mysqltuner.pl/
|
||||||
|
|
||||||
Git repository available at http://github.com/major/MySQLTuner-perl
|
Git repository available at https://github.com/major/MySQLTuner-perl
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -151,4 +168,4 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
See the GNU General Public License for more details.
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
170
Vagrant/Vagrantfile
vendored
170
Vagrant/Vagrantfile
vendored
|
@ -1,99 +1,71 @@
|
||||||
# -*- mode: ruby -*-
|
# -*- mode: ruby -*-
|
||||||
# vi: set ft=ruby :
|
# vi: set ft=ruby :
|
||||||
|
|
||||||
# All Vagrant configuration is done below. The "2" in Vagrant.configure
|
Vagrant.configure("2") do |config|
|
||||||
# configures the configuration version (we support older styles for
|
config.vm.box = "generic/fedora30"
|
||||||
# backwards compatibility). Please don't change it unless you know what
|
config.vm.network "private_network", ip: "192.168.50.10", virtualbox__intnet: false
|
||||||
# you're doing.
|
|
||||||
Vagrant.configure(2) do |config|
|
if Vagrant.has_plugin? "vagrant-vbguest"
|
||||||
# The most common configuration options are documented and commented below.
|
config.vbguest.no_install = true
|
||||||
# For a complete reference, please see the online documentation at
|
config.vbguest.auto_update = false
|
||||||
# https://docs.vagrantup.com.
|
config.vbguest.no_remote = true
|
||||||
|
end
|
||||||
# Every Vagrant development environment requires a box. You can search for
|
config.hostmanager.enabled = true
|
||||||
# boxes at https://atlas.hashicorp.com/search.
|
config.hostmanager.manage_host = false
|
||||||
config.vm.box = "fc23-mariadb10-0"
|
config.hostmanager.manage_guest = true
|
||||||
config.vm.box_url = "https://download.fedoraproject.org/pub/fedora/linux/releases/23/Cloud/x86_64/Images/Fedora-Cloud-Base-Vagrant-23-20151030.x86_64.vagrant-virtualbox.box"
|
config.hostmanager.ignore_private_ip = false
|
||||||
# Disable automatic box update checking. If you disable this, then
|
config.hostmanager.include_offline = true
|
||||||
# boxes will only be checked for updates when the user runs
|
|
||||||
# `vagrant box outdated`. This is not recommended.
|
config.vm.network "public_network"
|
||||||
# config.vm.box_check_update = false
|
config.vm.hostname = 'fedora-generic'
|
||||||
config.vbguest.auto_update = true
|
config.hostmanager.aliases = %w(fedora-generic.localdomain fedora-generic.local fcg.local)
|
||||||
# Create a forwarded port mapping which allows access to a specific port
|
|
||||||
# within the machine from a port on the host machine. In the example below,
|
config.vm.synced_folder ".", "/data"
|
||||||
# accessing "localhost:8080" will access port 80 on the guest machine.
|
|
||||||
# config.vm.network "forwarded_port", guest: 80, host: 8080
|
config.vm.provider "virtualbox" do |vb|
|
||||||
|
vb.name="fedora-generic"
|
||||||
# Create a private network, which allows host-only access to the machine
|
vb.gui = false
|
||||||
# using a specific IP.
|
vb.memory = "3036"
|
||||||
# config.vm.network "private_network", ip: "192.168.0.115"
|
vb.cpus = 4
|
||||||
config.hostmanager.enabled = true
|
end
|
||||||
config.hostmanager.manage_host = true
|
|
||||||
config.hostmanager.ignore_private_ip = false
|
config.vm.provision "shell", inline: <<-SHELL
|
||||||
config.hostmanager.include_offline = true
|
echo "secret" | sudo passwd --stdin root
|
||||||
|
echo "secret" | sudo passwd --stdin vagrant
|
||||||
# Create a public network, which generally matched to bridged network.
|
sudo cp -pr ~vagrant/.ssh /root
|
||||||
# Bridged networks make the machine appear as another physical device on
|
sudo chown -R root.root /root/.ssh
|
||||||
# your network.
|
|
||||||
config.vm.network "public_network"
|
sudo dnf -y update
|
||||||
config.vm.hostname = 'dev.app'
|
sudo dnf -y install telnet vim-enhanced net-tools git python python2-pip python34-PyYAML moreutils net-tools python-psutil perl-WWW-Mechanize-GZip perl-App-cpanminus perl-List-MoreUtils vim-enhanced unzip zip jq youtube-dl ffmpeg make mariadb psmisc PyYAML tofrodos python3 chromedriver wget
|
||||||
config.hostmanager.aliases = %w(dev.app.localdomain dev.app.local)
|
sudo dnf -y install python34-pip moreutils net-tools python-psutil perl-WWW-Mechanize-GZip perl-App-cpanminus perl-List-MoreUtils vim-enhanced unzip zip jq youtube-dl ffmpeg make mariadb psmisc PyYAML tofrodos python3 wget python-beautifulsoup4 npm rclone golang yum-utils device-mapper-persistent-data lvm2 docker
|
||||||
# Share an additional folder to the guest VM. The first argument is
|
|
||||||
# the path on the host to the actual folder. The second argument is
|
echo "alias h='function hdi(){ howdoi \$* -c -n 5; }; hdi'" >> /tmp/util.sh
|
||||||
# the path on the guest to mount the folder. And the optional third
|
echo "alias s=sudo" >> /tmp/util.sh
|
||||||
# argument is a set of non-required options.
|
echo "alias h=history" >> /tmp/util.sh
|
||||||
config.vm.synced_folder "./data", "/data"
|
echo "alias hserver='python -m http.server 8000'" >> /tmp/util.sh
|
||||||
|
sudo cp /tmp/util.sh /etc/profile.d
|
||||||
# Provider-specific configuration so you can fine-tune various
|
cat /tmp/util.sh
|
||||||
# backing providers for Vagrant. These expose provider-specific options.
|
|
||||||
# Example for VirtualBox:
|
sudo dnf install -y yum-utils device-mapper-persistent-data lvm2
|
||||||
#
|
sudo dnf -y install dnf-plugins-core
|
||||||
config.vm.provider "virtualbox" do |vb|
|
sudo dnf config-manager \
|
||||||
# # Display the VirtualBox GUI when booting the machine
|
--add-repo \
|
||||||
# vb.gui = false
|
https://download.docker.com/linux/fedora/docker-ce.repo
|
||||||
#
|
|
||||||
# # Customize the amount of memory on the VM:
|
sudo dnf -y install docker-ce docker-ce-cli containerd.io
|
||||||
vb.memory = "1024"
|
dnf list docker-ce --showduplicates | sort -r
|
||||||
end
|
|
||||||
#
|
sudo systemctl start docker
|
||||||
# View the documentation for the provider you are using for more
|
sudo systemctl enable docker
|
||||||
# information on available options.
|
sudo usermod -aG docker vagrant
|
||||||
|
sudo systemctl daemon-reload
|
||||||
# Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
|
|
||||||
# such as FTP and Heroku are also available. See the documentation at
|
true
|
||||||
# https://docs.vagrantup.com/v2/push/atlas.html for more information.
|
|
||||||
# config.push.define "atlas" do |push|
|
##########################################
|
||||||
# push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
|
# Install container
|
||||||
# end
|
sudo systemctl restart docker
|
||||||
|
SHELL
|
||||||
# Enable provisioning with a shell script. Additional provisioners such as
|
config.vm.provision :hostmanager
|
||||||
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
|
end
|
||||||
# documentation for more information about their specific syntax and use.
|
|
||||||
config.vm.provision "shell", inline: <<-SHELL
|
|
||||||
sudo yum -y update
|
|
||||||
echo "secret" | sudo passwd --stdin root
|
|
||||||
sudo cp -pr ~vagrant/.ssh /root
|
|
||||||
sudo chown -R root.root /root/.ssh
|
|
||||||
sudo yum -y install git python
|
|
||||||
sudo pip install --upgrade pip
|
|
||||||
if [ ! -d "/data/MySQLTuner-perl" ]; then
|
|
||||||
cd /data
|
|
||||||
sudo git clone https://github.com/major/MySQLTuner-perl.git
|
|
||||||
fi
|
|
||||||
sudo yum -y install perl-WWW-Mechanize-GZip perl-App-cpanminus perl-List-MoreUtils
|
|
||||||
sudo cpanm install File::Util
|
|
||||||
|
|
||||||
sudo yum -y install mariadb mariadb-server wget
|
|
||||||
sudo systemctl start mariadb.service
|
|
||||||
mysql -e 'select version();'
|
|
||||||
cd /data
|
|
||||||
sudo wget "https://launchpad.net/test-db/employees-db-1/1.0.6/+download/employees_db-full-1.0.6.tar.bz2"
|
|
||||||
sudo tar xvjf employees_db-full-1.0.6.tar.bz2
|
|
||||||
cd employees_db
|
|
||||||
cat employees.sql | mysql
|
|
||||||
cd ..
|
|
||||||
cd MySQLTuner-perl
|
|
||||||
perl mysqltuner.pl --idxstat --dbstat
|
|
||||||
SHELL
|
|
||||||
config.vm.provision :hostmanager
|
|
||||||
end
|
|
||||||
|
|
|
@ -1,114 +0,0 @@
|
||||||
# -*- mode: ruby -*-
|
|
||||||
# vi: set ft=ruby :
|
|
||||||
|
|
||||||
# All Vagrant configuration is done below. The "2" in Vagrant.configure
|
|
||||||
# configures the configuration version (we support older styles for
|
|
||||||
# backwards compatibility). Please don't change it unless you know what
|
|
||||||
# you're doing.
|
|
||||||
Vagrant.configure(2) do |config|
|
|
||||||
# The most common configuration options are documented and commented below.
|
|
||||||
# For a complete reference, please see the online documentation at
|
|
||||||
# https://docs.vagrantup.com.
|
|
||||||
|
|
||||||
# Every Vagrant development environment requires a box. You can search for
|
|
||||||
# boxes at https://atlas.hashicorp.com/search.
|
|
||||||
config.vm.box = "centos/7"
|
|
||||||
# config.vm.box_check_update = false
|
|
||||||
config.vbguest.auto_update = true
|
|
||||||
# Create a forwarded port mapping which allows access to a specific port
|
|
||||||
# within the machine from a port on the host machine. In the example below,
|
|
||||||
# accessing "localhost:8080" will access port 80 on the guest machine.
|
|
||||||
# config.vm.network "forwarded_port", guest: 80, host: 8080
|
|
||||||
|
|
||||||
if Vagrant.has_plugin?("vagrant-proxyconf")
|
|
||||||
config.proxy.http = "http://10.195.50.51:3128/"
|
|
||||||
config.proxy.https = "http://10.195.50.51:3128/"
|
|
||||||
config.proxy.no_proxy = "localhost,127.0.0.1,.example.com"
|
|
||||||
end
|
|
||||||
|
|
||||||
# Create a private network, which allows host-only access to the machine
|
|
||||||
# using a specific IP.
|
|
||||||
# config.vm.network "private_network", ip: "192.168.0.115"
|
|
||||||
config.hostmanager.enabled = true
|
|
||||||
config.hostmanager.manage_host = true
|
|
||||||
config.hostmanager.ignore_private_ip = false
|
|
||||||
config.hostmanager.include_offline = true
|
|
||||||
|
|
||||||
# Create a public network, which generally matched to bridged network.
|
|
||||||
# Bridged networks make the machine appear as another physical device on
|
|
||||||
# your network.
|
|
||||||
config.vm.network "public_network"
|
|
||||||
config.vm.hostname = 'dev.app'
|
|
||||||
config.hostmanager.aliases = %w(dev.app.localdomain dev.app.local)
|
|
||||||
# Share an additional folder to the guest VM. The first argument is
|
|
||||||
# the path on the host to the actual folder. The second argument is
|
|
||||||
# the path on the guest to mount the folder. And the optional third
|
|
||||||
# argument is a set of non-required options.
|
|
||||||
config.vm.synced_folder "./data", "/data"
|
|
||||||
|
|
||||||
# Provider-specific configuration so you can fine-tune various
|
|
||||||
# backing providers for Vagrant. These expose provider-specific options.
|
|
||||||
# Example for VirtualBox:
|
|
||||||
#
|
|
||||||
config.vm.provider "virtualbox" do |vb|
|
|
||||||
# # Display the VirtualBox GUI when booting the machine
|
|
||||||
# vb.gui = false
|
|
||||||
#
|
|
||||||
# # Customize the amount of memory on the VM:
|
|
||||||
vb.memory = "1024"
|
|
||||||
end
|
|
||||||
#
|
|
||||||
# View the documentation for the provider you are using for more
|
|
||||||
# information on available options.
|
|
||||||
|
|
||||||
# Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
|
|
||||||
# such as FTP and Heroku are also available. See the documentation at
|
|
||||||
# https://docs.vagrantup.com/v2/push/atlas.html for more information.
|
|
||||||
# config.push.define "atlas" do |push|
|
|
||||||
# push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
|
|
||||||
# end
|
|
||||||
|
|
||||||
# Enable provisioning with a shell script. Additional provisioners such as
|
|
||||||
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
|
|
||||||
# documentation for more information about their specific syntax and use.
|
|
||||||
config.vm.provision "shell", inline: <<-SHELL
|
|
||||||
sudo yum -y update
|
|
||||||
echo "secret" | sudo passwd --stdin root
|
|
||||||
sudo cp -pr ~vagrant/.ssh /root
|
|
||||||
sudo chown -R root.root /root/.ssh
|
|
||||||
|
|
||||||
sudo yum-config-manager --enable base
|
|
||||||
|
|
||||||
echo "[mariadb]" >/tmp/mariadb.repo
|
|
||||||
echo "name = MariaDB" >>/tmp/mariadb.repo
|
|
||||||
echo "baseurl = http://yum.mariadb.org/10.0/centos7-amd64" >> /tmp/mariadb.repo
|
|
||||||
echo "gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB" >> /tmp/mariadb.repo
|
|
||||||
echo "gpgcheck=1" >> /tmp/mariadb.repo
|
|
||||||
sudo cp /tmp/mariadb.repo /etc/yum.repos.d/
|
|
||||||
|
|
||||||
sudo rpm -Uvh http://mirrors.ircam.fr/pub/fedora/epel/7/x86_64/e/epel-release-7-10.noarch.rpm
|
|
||||||
|
|
||||||
|
|
||||||
sudo yum -y install python2-pip git python perl-WWW-Mechanize-GZip perl-App-cpanminus perl-List-MoreUtils MariaDB-server MariaDB-Client wget
|
|
||||||
|
|
||||||
sudo pip install --upgrade pip
|
|
||||||
if [ ! -d "/data/MySQLTuner-perl" ]; then
|
|
||||||
cd /data
|
|
||||||
sudo git clone https://github.com/major/MySQLTuner-perl.git
|
|
||||||
fi
|
|
||||||
sudo cpanm install File::Util
|
|
||||||
|
|
||||||
#sudo systemctl start mariadb.service
|
|
||||||
sudo service mysql start
|
|
||||||
mysql -e 'select version();'
|
|
||||||
cd /data
|
|
||||||
sudo wget "https://launchpad.net/test-db/employees-db-1/1.0.6/+download/employees_db-full-1.0.6.tar.bz2"
|
|
||||||
sudo tar xvjf employees_db-full-1.0.6.tar.bz2
|
|
||||||
cd employees_db
|
|
||||||
cat employees.sql | mysql
|
|
||||||
cd ..
|
|
||||||
cd MySQLTuner-perl
|
|
||||||
perl mysqltuner.pl --idxstat --dbstat
|
|
||||||
SHELL
|
|
||||||
config.vm.provision :hostmanager
|
|
||||||
end
|
|
|
@ -1,114 +0,0 @@
|
||||||
# -*- mode: ruby -*-
|
|
||||||
# vi: set ft=ruby :
|
|
||||||
|
|
||||||
# All Vagrant configuration is done below. The "2" in Vagrant.configure
|
|
||||||
# configures the configuration version (we support older styles for
|
|
||||||
# backwards compatibility). Please don't change it unless you know what
|
|
||||||
# you're doing.
|
|
||||||
Vagrant.configure(2) do |config|
|
|
||||||
# The most common configuration options are documented and commented below.
|
|
||||||
# For a complete reference, please see the online documentation at
|
|
||||||
# https://docs.vagrantup.com.
|
|
||||||
|
|
||||||
# Every Vagrant development environment requires a box. You can search for
|
|
||||||
# boxes at https://atlas.hashicorp.com/search.
|
|
||||||
config.vm.box = "centos/7"
|
|
||||||
# config.vm.box_check_update = false
|
|
||||||
config.vbguest.auto_update = true
|
|
||||||
# Create a forwarded port mapping which allows access to a specific port
|
|
||||||
# within the machine from a port on the host machine. In the example below,
|
|
||||||
# accessing "localhost:8080" will access port 80 on the guest machine.
|
|
||||||
# config.vm.network "forwarded_port", guest: 80, host: 8080
|
|
||||||
|
|
||||||
if Vagrant.has_plugin?("vagrant-proxyconf")
|
|
||||||
config.proxy.http = "http://10.195.50.51:3128/"
|
|
||||||
config.proxy.https = "http://10.195.50.51:3128/"
|
|
||||||
config.proxy.no_proxy = "localhost,127.0.0.1,.example.com"
|
|
||||||
end
|
|
||||||
|
|
||||||
# Create a private network, which allows host-only access to the machine
|
|
||||||
# using a specific IP.
|
|
||||||
# config.vm.network "private_network", ip: "192.168.0.115"
|
|
||||||
config.hostmanager.enabled = true
|
|
||||||
config.hostmanager.manage_host = true
|
|
||||||
config.hostmanager.ignore_private_ip = false
|
|
||||||
config.hostmanager.include_offline = true
|
|
||||||
|
|
||||||
# Create a public network, which generally matched to bridged network.
|
|
||||||
# Bridged networks make the machine appear as another physical device on
|
|
||||||
# your network.
|
|
||||||
config.vm.network "public_network"
|
|
||||||
config.vm.hostname = 'dev.app'
|
|
||||||
config.hostmanager.aliases = %w(dev.app.localdomain dev.app.local)
|
|
||||||
# Share an additional folder to the guest VM. The first argument is
|
|
||||||
# the path on the host to the actual folder. The second argument is
|
|
||||||
# the path on the guest to mount the folder. And the optional third
|
|
||||||
# argument is a set of non-required options.
|
|
||||||
config.vm.synced_folder "./data", "/data"
|
|
||||||
|
|
||||||
# Provider-specific configuration so you can fine-tune various
|
|
||||||
# backing providers for Vagrant. These expose provider-specific options.
|
|
||||||
# Example for VirtualBox:
|
|
||||||
#
|
|
||||||
config.vm.provider "virtualbox" do |vb|
|
|
||||||
# # Display the VirtualBox GUI when booting the machine
|
|
||||||
# vb.gui = false
|
|
||||||
#
|
|
||||||
# # Customize the amount of memory on the VM:
|
|
||||||
vb.memory = "1024"
|
|
||||||
end
|
|
||||||
#
|
|
||||||
# View the documentation for the provider you are using for more
|
|
||||||
# information on available options.
|
|
||||||
|
|
||||||
# Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
|
|
||||||
# such as FTP and Heroku are also available. See the documentation at
|
|
||||||
# https://docs.vagrantup.com/v2/push/atlas.html for more information.
|
|
||||||
# config.push.define "atlas" do |push|
|
|
||||||
# push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
|
|
||||||
# end
|
|
||||||
|
|
||||||
# Enable provisioning with a shell script. Additional provisioners such as
|
|
||||||
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
|
|
||||||
# documentation for more information about their specific syntax and use.
|
|
||||||
config.vm.provision "shell", inline: <<-SHELL
|
|
||||||
sudo yum -y update
|
|
||||||
echo "secret" | sudo passwd --stdin root
|
|
||||||
sudo cp -pr ~vagrant/.ssh /root
|
|
||||||
sudo chown -R root.root /root/.ssh
|
|
||||||
|
|
||||||
sudo yum-config-manager --enable base
|
|
||||||
|
|
||||||
echo "[mariadb]" >/tmp/mariadb.repo
|
|
||||||
echo "name = MariaDB" >>/tmp/mariadb.repo
|
|
||||||
echo "baseurl = http://yum.mariadb.org/10.1/centos7-amd64" >> /tmp/mariadb.repo
|
|
||||||
echo "gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB" >> /tmp/mariadb.repo
|
|
||||||
echo "gpgcheck=1" >> /tmp/mariadb.repo
|
|
||||||
sudo cp /tmp/mariadb.repo /etc/yum.repos.d/
|
|
||||||
|
|
||||||
sudo rpm -Uvh http://mirrors.ircam.fr/pub/fedora/epel/7/x86_64/e/epel-release-7-10.noarch.rpm
|
|
||||||
|
|
||||||
|
|
||||||
sudo yum -y install python2-pip git python perl-WWW-Mechanize-GZip perl-App-cpanminus perl-List-MoreUtils MariaDB-server MariaDB-Client wget
|
|
||||||
|
|
||||||
sudo pip install --upgrade pip
|
|
||||||
if [ ! -d "/data/MySQLTuner-perl" ]; then
|
|
||||||
cd /data
|
|
||||||
sudo git clone https://github.com/major/MySQLTuner-perl.git
|
|
||||||
fi
|
|
||||||
sudo cpanm install File::Util
|
|
||||||
|
|
||||||
#sudo systemctl start mariadb.service
|
|
||||||
sudo service mysql start
|
|
||||||
mysql -e 'select version();'
|
|
||||||
cd /data
|
|
||||||
sudo wget "https://launchpad.net/test-db/employees-db-1/1.0.6/+download/employees_db-full-1.0.6.tar.bz2"
|
|
||||||
sudo tar xvjf employees_db-full-1.0.6.tar.bz2
|
|
||||||
cd employees_db
|
|
||||||
cat employees.sql | mysql
|
|
||||||
cd ..
|
|
||||||
cd MySQLTuner-perl
|
|
||||||
perl mysqltuner.pl --idxstat --dbstat
|
|
||||||
SHELL
|
|
||||||
config.vm.provision :hostmanager
|
|
||||||
end
|
|
|
@ -1,107 +0,0 @@
|
||||||
# -*- mode: ruby -*-
|
|
||||||
# vi: set ft=ruby :
|
|
||||||
|
|
||||||
# All Vagrant configuration is done below. The "2" in Vagrant.configure
|
|
||||||
# configures the configuration version (we support older styles for
|
|
||||||
# backwards compatibility). Please don't change it unless you know what
|
|
||||||
# you're doing.
|
|
||||||
Vagrant.configure(2) do |config|
|
|
||||||
# The most common configuration options are documented and commented below.
|
|
||||||
# For a complete reference, please see the online documentation at
|
|
||||||
# https://docs.vagrantup.com.
|
|
||||||
|
|
||||||
# Every Vagrant development environment requires a box. You can search for
|
|
||||||
# boxes at https://atlas.hashicorp.com/search.
|
|
||||||
config.vm.box = "fc23-mariadb10-1"
|
|
||||||
config.vm.box_url = "https://download.fedoraproject.org/pub/fedora/linux/releases/23/Cloud/x86_64/Images/Fedora-Cloud-Base-Vagrant-23-20151030.x86_64.vagrant-virtualbox.box"
|
|
||||||
# Disable automatic box update checking. If you disable this, then
|
|
||||||
# boxes will only be checked for updates when the user runs
|
|
||||||
# `vagrant box outdated`. This is not recommended.
|
|
||||||
# config.vm.box_check_update = false
|
|
||||||
config.vbguest.auto_update = true
|
|
||||||
# Create a forwarded port mapping which allows access to a specific port
|
|
||||||
# within the machine from a port on the host machine. In the example below,
|
|
||||||
# accessing "localhost:8080" will access port 80 on the guest machine.
|
|
||||||
# config.vm.network "forwarded_port", guest: 80, host: 8080
|
|
||||||
|
|
||||||
# Create a private network, which allows host-only access to the machine
|
|
||||||
# using a specific IP.
|
|
||||||
# config.vm.network "private_network", ip: "192.168.0.115"
|
|
||||||
config.hostmanager.enabled = true
|
|
||||||
config.hostmanager.manage_host = true
|
|
||||||
config.hostmanager.ignore_private_ip = false
|
|
||||||
config.hostmanager.include_offline = true
|
|
||||||
|
|
||||||
# Create a public network, which generally matched to bridged network.
|
|
||||||
# Bridged networks make the machine appear as another physical device on
|
|
||||||
# your network.
|
|
||||||
config.vm.network "public_network"
|
|
||||||
config.vm.hostname = 'dev.app'
|
|
||||||
config.hostmanager.aliases = %w(dev.app.localdomain dev.app.local)
|
|
||||||
# Share an additional folder to the guest VM. The first argument is
|
|
||||||
# the path on the host to the actual folder. The second argument is
|
|
||||||
# the path on the guest to mount the folder. And the optional third
|
|
||||||
# argument is a set of non-required options.
|
|
||||||
config.vm.synced_folder "./data", "/data"
|
|
||||||
|
|
||||||
# Provider-specific configuration so you can fine-tune various
|
|
||||||
# backing providers for Vagrant. These expose provider-specific options.
|
|
||||||
# Example for VirtualBox:
|
|
||||||
#
|
|
||||||
config.vm.provider "virtualbox" do |vb|
|
|
||||||
# # Display the VirtualBox GUI when booting the machine
|
|
||||||
# vb.gui = false
|
|
||||||
#
|
|
||||||
# # Customize the amount of memory on the VM:
|
|
||||||
vb.memory = "1024"
|
|
||||||
end
|
|
||||||
#
|
|
||||||
# View the documentation for the provider you are using for more
|
|
||||||
# information on available options.
|
|
||||||
|
|
||||||
# Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
|
|
||||||
# such as FTP and Heroku are also available. See the documentation at
|
|
||||||
# https://docs.vagrantup.com/v2/push/atlas.html for more information.
|
|
||||||
# config.push.define "atlas" do |push|
|
|
||||||
# push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
|
|
||||||
# end
|
|
||||||
|
|
||||||
# Enable provisioning with a shell script. Additional provisioners such as
|
|
||||||
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
|
|
||||||
# documentation for more information about their specific syntax and use.
|
|
||||||
config.vm.provision "shell", inline: <<-SHELL
|
|
||||||
sudo yum -y update
|
|
||||||
echo "secret" | sudo passwd --stdin root
|
|
||||||
sudo cp -pr ~vagrant/.ssh /root
|
|
||||||
sudo chown -R root.root /root/.ssh
|
|
||||||
sudo yum -y install git python
|
|
||||||
sudo pip install --upgrade pip
|
|
||||||
if [ ! -d "/data/MySQLTuner-perl" ]; then
|
|
||||||
cd /data
|
|
||||||
sudo git clone https://github.com/major/MySQLTuner-perl.git
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "# MariaDB 10.1 Fedora repository list - created 2016-01-25 13:11 UTC
|
|
||||||
# http://mariadb.org/mariadb/repositories/
|
|
||||||
[mariadb]
|
|
||||||
name = MariaDB
|
|
||||||
baseurl = http://yum.mariadb.org/10.2/fedora23-amd64
|
|
||||||
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
|
|
||||||
gpgcheck=1" >> /etc/yum.repos.d/mariadb.repo
|
|
||||||
sudo yum -y install perl-WWW-Mechanize-GZip perl-App-cpanminus perl-List-MoreUtils
|
|
||||||
sudo cpanm install File::Util
|
|
||||||
|
|
||||||
sudo yum -y install MariaDB-server MariaDB-client wget
|
|
||||||
sudo systemctl start mariadb.service
|
|
||||||
mysql -e 'select version();'
|
|
||||||
cd /data
|
|
||||||
sudo wget "https://launchpad.net/test-db/employees-db-1/1.0.6/+download/employees_db-full-1.0.6.tar.bz2"
|
|
||||||
sudo tar xvjf employees_db-full-1.0.6.tar.bz2
|
|
||||||
cd employees_db
|
|
||||||
cat employees.sql | mysql
|
|
||||||
cd ..
|
|
||||||
cd MySQLTuner-perl
|
|
||||||
perl mysqltuner.pl --idxstat --dbstat
|
|
||||||
SHELL
|
|
||||||
config.vm.provision :hostmanager
|
|
||||||
end
|
|
|
@ -1,106 +0,0 @@
|
||||||
# -*- mode: ruby -*-
|
|
||||||
# vi: set ft=ruby :
|
|
||||||
|
|
||||||
# All Vagrant configuration is done below. The "2" in Vagrant.configure
|
|
||||||
# configures the configuration version (we support older styles for
|
|
||||||
# backwards compatibility). Please don't change it unless you know what
|
|
||||||
# you're doing.
|
|
||||||
Vagrant.configure(2) do |config|
|
|
||||||
# The most common configuration options are documented and commented below.
|
|
||||||
# For a complete reference, please see the online documentation at
|
|
||||||
# https://docs.vagrantup.com.
|
|
||||||
|
|
||||||
# Every Vagrant development environment requires a box. You can search for
|
|
||||||
# boxes at https://atlas.hashicorp.com/search.
|
|
||||||
config.vm.box = "centos/7"
|
|
||||||
# Disable automatic box update checking. If you disable this, then
|
|
||||||
# boxes will only be checked for updates when the user runs
|
|
||||||
# `vagrant box outdated`. This is not recommended.
|
|
||||||
# config.vm.box_check_update = false
|
|
||||||
config.vbguest.auto_update = true
|
|
||||||
# Create a forwarded port mapping which allows access to a specific port
|
|
||||||
# within the machine from a port on the host machine. In the example below,
|
|
||||||
# accessing "localhost:8080" will access port 80 on the guest machine.
|
|
||||||
# config.vm.network "forwarded_port", guest: 80, host: 8080
|
|
||||||
|
|
||||||
# Create a private network, which allows host-only access to the machine
|
|
||||||
# using a specific IP.
|
|
||||||
# config.vm.network "private_network", ip: "192.168.0.115"
|
|
||||||
config.hostmanager.enabled = true
|
|
||||||
config.hostmanager.manage_host = true
|
|
||||||
config.hostmanager.ignore_private_ip = false
|
|
||||||
config.hostmanager.include_offline = true
|
|
||||||
|
|
||||||
# Create a public network, which generally matched to bridged network.
|
|
||||||
# Bridged networks make the machine appear as another physical device on
|
|
||||||
# your network.
|
|
||||||
config.vm.network "public_network"
|
|
||||||
config.vm.hostname = 'dev.app'
|
|
||||||
config.hostmanager.aliases = %w(dev.app.localdomain dev.app.local)
|
|
||||||
# Share an additional folder to the guest VM. The first argument is
|
|
||||||
# the path on the host to the actual folder. The second argument is
|
|
||||||
# the path on the guest to mount the folder. And the optional third
|
|
||||||
# argument is a set of non-required options.
|
|
||||||
config.vm.synced_folder "./data", "/data"
|
|
||||||
|
|
||||||
# Provider-specific configuration so you can fine-tune various
|
|
||||||
# backing providers for Vagrant. These expose provider-specific options.
|
|
||||||
# Example for VirtualBox:
|
|
||||||
#
|
|
||||||
config.vm.provider "virtualbox" do |vb|
|
|
||||||
# # Display the VirtualBox GUI when booting the machine
|
|
||||||
# vb.gui = false
|
|
||||||
#
|
|
||||||
# # Customize the amount of memory on the VM:
|
|
||||||
vb.memory = "1024"
|
|
||||||
end
|
|
||||||
#
|
|
||||||
# View the documentation for the provider you are using for more
|
|
||||||
# information on available options.
|
|
||||||
|
|
||||||
# Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
|
|
||||||
# such as FTP and Heroku are also available. See the documentation at
|
|
||||||
# https://docs.vagrantup.com/v2/push/atlas.html for more information.
|
|
||||||
# config.push.define "atlas" do |push|
|
|
||||||
# push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
|
|
||||||
# end
|
|
||||||
|
|
||||||
# Enable provisioning with a shell script. Additional provisioners such as
|
|
||||||
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
|
|
||||||
# documentation for more information about their specific syntax and use.
|
|
||||||
config.vm.provision "shell", inline: <<-SHELL
|
|
||||||
sudo yum -y update
|
|
||||||
echo "secret" | sudo passwd --stdin root
|
|
||||||
sudo cp -pr ~vagrant/.ssh /root
|
|
||||||
sudo chown -R root.root /root/.ssh
|
|
||||||
sudo yum -y install git python
|
|
||||||
sudo pip install --upgrade pip
|
|
||||||
if [ ! -d "/data/MySQLTuner-perl" ]; then
|
|
||||||
cd /data
|
|
||||||
sudo git clone https://github.com/major/MySQLTuner-perl.git
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "# MariaDB 10.1 Fedora repository list - created 2016-01-25 13:11 UTC
|
|
||||||
# http://mariadb.org/mariadb/repositories/
|
|
||||||
[mariadb]
|
|
||||||
name = MariaDB
|
|
||||||
baseurl = http://yum.mariadb.org/10.3/fedora23-amd64
|
|
||||||
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
|
|
||||||
gpgcheck=1" >> /etc/yum.repos.d/mariadb.repo
|
|
||||||
sudo yum -y install perl-WWW-Mechanize-GZip perl-App-cpanminus perl-List-MoreUtils
|
|
||||||
sudo cpanm install File::Util
|
|
||||||
|
|
||||||
sudo yum -y install MariaDB-server MariaDB-client wget
|
|
||||||
sudo systemctl start mariadb.service
|
|
||||||
mysql -e 'select version();'
|
|
||||||
cd /data
|
|
||||||
sudo wget "https://launchpad.net/test-db/employees-db-1/1.0.6/+download/employees_db-full-1.0.6.tar.bz2"
|
|
||||||
sudo tar xvjf employees_db-full-1.0.6.tar.bz2
|
|
||||||
cd employees_db
|
|
||||||
cat employees.sql | mysql
|
|
||||||
cd ..
|
|
||||||
cd MySQLTuner-perl
|
|
||||||
perl mysqltuner.pl --idxstat --dbstat
|
|
||||||
SHELL
|
|
||||||
config.vm.provision :hostmanager
|
|
||||||
end
|
|
|
@ -1,107 +0,0 @@
|
||||||
# -*- mode: ruby -*-
|
|
||||||
# vi: set ft=ruby :
|
|
||||||
|
|
||||||
# All Vagrant configuration is done below. The "2" in Vagrant.configure
|
|
||||||
# configures the configuration version (we support older styles for
|
|
||||||
# backwards compatibility). Please don't change it unless you know what
|
|
||||||
# you're doing.
|
|
||||||
Vagrant.configure(2) do |config|
|
|
||||||
# The most common configuration options are documented and commented below.
|
|
||||||
# For a complete reference, please see the online documentation at
|
|
||||||
# https://docs.vagrantup.com.
|
|
||||||
|
|
||||||
# Every Vagrant development environment requires a box. You can search for
|
|
||||||
# boxes at https://atlas.hashicorp.com/search.
|
|
||||||
config.vm.box = "fc23-mysql5-6"
|
|
||||||
config.vm.box_url = "https://download.fedoraproject.org/pub/fedora/linux/releases/23/Cloud/x86_64/Images/Fedora-Cloud-Base-Vagrant-23-20151030.x86_64.vagrant-virtualbox.box"
|
|
||||||
# Disable automatic box update checking. If you disable this, then
|
|
||||||
# boxes will only be checked for updates when the user runs
|
|
||||||
# `vagrant box outdated`. This is not recommended.
|
|
||||||
# config.vm.box_check_update = false
|
|
||||||
config.vbguest.auto_update = true
|
|
||||||
# Create a forwarded port mapping which allows access to a specific port
|
|
||||||
# within the machine from a port on the host machine. In the example below,
|
|
||||||
# accessing "localhost:8080" will access port 80 on the guest machine.
|
|
||||||
# config.vm.network "forwarded_port", guest: 80, host: 8080
|
|
||||||
|
|
||||||
# Create a private network, which allows host-only access to the machine
|
|
||||||
# using a specific IP.
|
|
||||||
# config.vm.network "private_network", ip: "192.168.0.115"
|
|
||||||
config.hostmanager.enabled = true
|
|
||||||
config.hostmanager.manage_host = true
|
|
||||||
config.hostmanager.ignore_private_ip = false
|
|
||||||
config.hostmanager.include_offline = true
|
|
||||||
|
|
||||||
# Create a public network, which generally matched to bridged network.
|
|
||||||
# Bridged networks make the machine appear as another physical device on
|
|
||||||
# your network.
|
|
||||||
config.vm.network "public_network"
|
|
||||||
config.vm.hostname = 'dev.app'
|
|
||||||
config.hostmanager.aliases = %w(dev.app.localdomain dev.app.local)
|
|
||||||
# Share an additional folder to the guest VM. The first argument is
|
|
||||||
# the path on the host to the actual folder. The second argument is
|
|
||||||
# the path on the guest to mount the folder. And the optional third
|
|
||||||
# argument is a set of non-required options.
|
|
||||||
config.vm.synced_folder "./data", "/data"
|
|
||||||
|
|
||||||
# Provider-specific configuration so you can fine-tune various
|
|
||||||
# backing providers for Vagrant. These expose provider-specific options.
|
|
||||||
# Example for VirtualBox:
|
|
||||||
#
|
|
||||||
config.vm.provider "virtualbox" do |vb|
|
|
||||||
# # Display the VirtualBox GUI when booting the machine
|
|
||||||
# vb.gui = false
|
|
||||||
#
|
|
||||||
# # Customize the amount of memory on the VM:
|
|
||||||
vb.memory = "1024"
|
|
||||||
end
|
|
||||||
#
|
|
||||||
# View the documentation for the provider you are using for more
|
|
||||||
# information on available options.
|
|
||||||
|
|
||||||
# Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
|
|
||||||
# such as FTP and Heroku are also available. See the documentation at
|
|
||||||
# https://docs.vagrantup.com/v2/push/atlas.html for more information.
|
|
||||||
# config.push.define "atlas" do |push|
|
|
||||||
# push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
|
|
||||||
# end
|
|
||||||
|
|
||||||
# Enable provisioning with a shell script. Additional provisioners such as
|
|
||||||
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
|
|
||||||
# documentation for more information about their specific syntax and use.
|
|
||||||
config.vm.provision "shell", inline: <<-SHELL
|
|
||||||
sudo yum -y update
|
|
||||||
echo "secret" | sudo passwd --stdin root
|
|
||||||
sudo cp -pr ~vagrant/.ssh /root
|
|
||||||
sudo chown -R root.root /root/.ssh
|
|
||||||
sudo yum -y install git python yum-utils
|
|
||||||
sudo pip install --upgrade pip
|
|
||||||
if [ ! -d "/data/MySQLTuner-perl" ]; then
|
|
||||||
cd /data
|
|
||||||
sudo git clone https://github.com/major/MySQLTuner-perl.git
|
|
||||||
fi
|
|
||||||
|
|
||||||
sudo rpm -ivh https://dev.mysql.com/get/mysql57-community-release-fc23-7.noarch.rpm
|
|
||||||
sudo yum -y install perl-WWW-Mechanize-GZip perl-App-cpanminus perl-List-MoreUtils
|
|
||||||
sudo cpanm install File::Util
|
|
||||||
|
|
||||||
sudo yum-config-manager --disable mysql57-community
|
|
||||||
sudo yum-config-manager --enable mysql56-community
|
|
||||||
|
|
||||||
sudo yum -y install mysql-community-server mysql-community-client wget
|
|
||||||
sudo systemctl start mysqld.service
|
|
||||||
|
|
||||||
mysql -uroot -e 'select version();'
|
|
||||||
cd /data
|
|
||||||
[ -f "employees_db-full-1.0.6.tar.bz2" ] || sudo wget "https://launchpad.net/test-db/employees-db-1/1.0.6/+download/employees_db-full-1.0.6.tar.bz2"
|
|
||||||
sudo tar xvjf employees_db-full-1.0.6.tar.bz2
|
|
||||||
cd employees_db
|
|
||||||
cat employees.sql | mysql
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
cd MySQLTuner-perl
|
|
||||||
|
|
||||||
perl mysqltuner.pl --idxstat --dbstat
|
|
||||||
SHELL
|
|
||||||
config.vm.provision :hostmanager
|
|
||||||
end
|
|
|
@ -1,106 +0,0 @@
|
||||||
# -*- mode: ruby -*-
|
|
||||||
# vi: set ft=ruby :
|
|
||||||
|
|
||||||
# All Vagrant configuration is done below. The "2" in Vagrant.configure
|
|
||||||
# configures the configuration version (we support older styles for
|
|
||||||
# backwards compatibility). Please don't change it unless you know what
|
|
||||||
# you're doing.
|
|
||||||
Vagrant.configure(2) do |config|
|
|
||||||
# The most common configuration options are documented and commented below.
|
|
||||||
# For a complete reference, please see the online documentation at
|
|
||||||
# https://docs.vagrantup.com.
|
|
||||||
|
|
||||||
# Every Vagrant development environment requires a box. You can search for
|
|
||||||
# boxes at https://atlas.hashicorp.com/search.
|
|
||||||
config.vm.box = "fc23-mysql5-7"
|
|
||||||
config.vm.box_url = "https://download.fedoraproject.org/pub/fedora/linux/releases/23/Cloud/x86_64/Images/Fedora-Cloud-Base-Vagrant-23-20151030.x86_64.vagrant-virtualbox.box"
|
|
||||||
# Disable automatic box update checking. If you disable this, then
|
|
||||||
# boxes will only be checked for updates when the user runs
|
|
||||||
# `vagrant box outdated`. This is not recommended.
|
|
||||||
# config.vm.box_check_update = false
|
|
||||||
config.vbguest.auto_update = true
|
|
||||||
# Create a forwarded port mapping which allows access to a specific port
|
|
||||||
# within the machine from a port on the host machine. In the example below,
|
|
||||||
# accessing "localhost:8080" will access port 80 on the guest machine.
|
|
||||||
# config.vm.network "forwarded_port", guest: 80, host: 8080
|
|
||||||
|
|
||||||
# Create a private network, which allows host-only access to the machine
|
|
||||||
# using a specific IP.
|
|
||||||
# config.vm.network "private_network", ip: "192.168.0.115"
|
|
||||||
config.hostmanager.enabled = true
|
|
||||||
config.hostmanager.manage_host = true
|
|
||||||
config.hostmanager.ignore_private_ip = false
|
|
||||||
config.hostmanager.include_offline = true
|
|
||||||
|
|
||||||
# Create a public network, which generally matched to bridged network.
|
|
||||||
# Bridged networks make the machine appear as another physical device on
|
|
||||||
# your network.
|
|
||||||
config.vm.network "public_network"
|
|
||||||
config.vm.hostname = 'dev.app'
|
|
||||||
config.hostmanager.aliases = %w(dev.app.localdomain dev.app.local)
|
|
||||||
# Share an additional folder to the guest VM. The first argument is
|
|
||||||
# the path on the host to the actual folder. The second argument is
|
|
||||||
# the path on the guest to mount the folder. And the optional third
|
|
||||||
# argument is a set of non-required options.
|
|
||||||
config.vm.synced_folder "./data", "/data"
|
|
||||||
|
|
||||||
# Provider-specific configuration so you can fine-tune various
|
|
||||||
# backing providers for Vagrant. These expose provider-specific options.
|
|
||||||
# Example for VirtualBox:
|
|
||||||
#
|
|
||||||
config.vm.provider "virtualbox" do |vb|
|
|
||||||
# # Display the VirtualBox GUI when booting the machine
|
|
||||||
# vb.gui = false
|
|
||||||
#
|
|
||||||
# # Customize the amount of memory on the VM:
|
|
||||||
vb.memory = "1024"
|
|
||||||
end
|
|
||||||
#
|
|
||||||
# View the documentation for the provider you are using for more
|
|
||||||
# information on available options.
|
|
||||||
|
|
||||||
# Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
|
|
||||||
# such as FTP and Heroku are also available. See the documentation at
|
|
||||||
# https://docs.vagrantup.com/v2/push/atlas.html for more information.
|
|
||||||
# config.push.define "atlas" do |push|
|
|
||||||
# push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
|
|
||||||
# end
|
|
||||||
|
|
||||||
# Enable provisioning with a shell script. Additional provisioners such as
|
|
||||||
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
|
|
||||||
# documentation for more information about their specific syntax and use.
|
|
||||||
config.vm.provision "shell", inline: <<-SHELL
|
|
||||||
sudo yum -y update
|
|
||||||
echo "secret" | sudo passwd --stdin root
|
|
||||||
sudo cp -pr ~vagrant/.ssh /root
|
|
||||||
sudo chown -R root.root /root/.ssh
|
|
||||||
sudo yum -y install git python
|
|
||||||
sudo pip install --upgrade pip
|
|
||||||
if [ ! -d "/data/MySQLTuner-perl" ]; then
|
|
||||||
cd /data
|
|
||||||
sudo git clone https://github.com/major/MySQLTuner-perl.git
|
|
||||||
fi
|
|
||||||
|
|
||||||
sudo rpm -ivh https://dev.mysql.com/get/mysql57-community-release-fc23-7.noarch.rpm
|
|
||||||
sudo yum -y install perl-WWW-Mechanize-GZip perl-App-cpanminus perl-List-MoreUtils
|
|
||||||
sudo cpanm install File::Util
|
|
||||||
|
|
||||||
sudo yum -y install mysql-community-server mysql-community-client wget
|
|
||||||
sudo systemctl start mysqld.service
|
|
||||||
PASSWORD=$(sudo grep -i "temporary password" /var/log/mysqld.log | cut -d':' -f4 | xargs -n 1 echo)
|
|
||||||
echo "PASSWORD: $PASSWORD"
|
|
||||||
mysql -uroot -p$PASSWORD --connect-expired-password -e "ALTER USER 'root'@'localhost' IDENTIFIED BY 'MySqlSecr3t#'"
|
|
||||||
mysql -uroot -psecret -e 'select version();'
|
|
||||||
cd /data
|
|
||||||
[ -f "employees_db-full-1.0.6.tar.bz2" ] || sudo wget "https://launchpad.net/test-db/employees-db-1/1.0.6/+download/employees_db-full-1.0.6.tar.bz2"
|
|
||||||
sudo tar xvjf employees_db-full-1.0.6.tar.bz2
|
|
||||||
cd employees_db
|
|
||||||
cat employees.sql | mysql -uroot -pMySqlSecr3t#
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
cd MySQLTuner-perl
|
|
||||||
|
|
||||||
#perl mysqltuner.pl --user root --pass MySqlSecr3t# --idxstat --dbstat
|
|
||||||
SHELL
|
|
||||||
config.vm.provision :hostmanager
|
|
||||||
end
|
|
|
@ -1,106 +0,0 @@
|
||||||
# -*- mode: ruby -*-
|
|
||||||
# vi: set ft=ruby :
|
|
||||||
|
|
||||||
# All Vagrant configuration is done below. The "2" in Vagrant.configure
|
|
||||||
# configures the configuration version (we support older styles for
|
|
||||||
# backwards compatibility). Please don't change it unless you know what
|
|
||||||
# you're doing.
|
|
||||||
Vagrant.configure(2) do |config|
|
|
||||||
# The most common configuration options are documented and commented below.
|
|
||||||
# For a complete reference, please see the online documentation at
|
|
||||||
# https://docs.vagrantup.com.
|
|
||||||
|
|
||||||
# Every Vagrant development environment requires a box. You can search for
|
|
||||||
# boxes at https://atlas.hashicorp.com/search.
|
|
||||||
config.vm.box = "fc23-mysql5-7"
|
|
||||||
config.vm.box_url = "https://download.fedoraproject.org/pub/fedora/linux/releases/23/Cloud/x86_64/Images/Fedora-Cloud-Base-Vagrant-23-20151030.x86_64.vagrant-virtualbox.box"
|
|
||||||
# Disable automatic box update checking. If you disable this, then
|
|
||||||
# boxes will only be checked for updates when the user runs
|
|
||||||
# `vagrant box outdated`. This is not recommended.
|
|
||||||
# config.vm.box_check_update = false
|
|
||||||
config.vbguest.auto_update = true
|
|
||||||
# Create a forwarded port mapping which allows access to a specific port
|
|
||||||
# within the machine from a port on the host machine. In the example below,
|
|
||||||
# accessing "localhost:8080" will access port 80 on the guest machine.
|
|
||||||
# config.vm.network "forwarded_port", guest: 80, host: 8080
|
|
||||||
|
|
||||||
# Create a private network, which allows host-only access to the machine
|
|
||||||
# using a specific IP.
|
|
||||||
# config.vm.network "private_network", ip: "192.168.0.115"
|
|
||||||
config.hostmanager.enabled = true
|
|
||||||
config.hostmanager.manage_host = true
|
|
||||||
config.hostmanager.ignore_private_ip = false
|
|
||||||
config.hostmanager.include_offline = true
|
|
||||||
|
|
||||||
# Create a public network, which generally matched to bridged network.
|
|
||||||
# Bridged networks make the machine appear as another physical device on
|
|
||||||
# your network.
|
|
||||||
config.vm.network "public_network"
|
|
||||||
config.vm.hostname = 'dev.app'
|
|
||||||
config.hostmanager.aliases = %w(dev.app.localdomain dev.app.local)
|
|
||||||
# Share an additional folder to the guest VM. The first argument is
|
|
||||||
# the path on the host to the actual folder. The second argument is
|
|
||||||
# the path on the guest to mount the folder. And the optional third
|
|
||||||
# argument is a set of non-required options.
|
|
||||||
config.vm.synced_folder "./data", "/data"
|
|
||||||
|
|
||||||
# Provider-specific configuration so you can fine-tune various
|
|
||||||
# backing providers for Vagrant. These expose provider-specific options.
|
|
||||||
# Example for VirtualBox:
|
|
||||||
#
|
|
||||||
config.vm.provider "virtualbox" do |vb|
|
|
||||||
# # Display the VirtualBox GUI when booting the machine
|
|
||||||
# vb.gui = false
|
|
||||||
#
|
|
||||||
# # Customize the amount of memory on the VM:
|
|
||||||
vb.memory = "1024"
|
|
||||||
end
|
|
||||||
#
|
|
||||||
# View the documentation for the provider you are using for more
|
|
||||||
# information on available options.
|
|
||||||
|
|
||||||
# Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
|
|
||||||
# such as FTP and Heroku are also available. See the documentation at
|
|
||||||
# https://docs.vagrantup.com/v2/push/atlas.html for more information.
|
|
||||||
# config.push.define "atlas" do |push|
|
|
||||||
# push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
|
|
||||||
# end
|
|
||||||
|
|
||||||
# Enable provisioning with a shell script. Additional provisioners such as
|
|
||||||
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
|
|
||||||
# documentation for more information about their specific syntax and use.
|
|
||||||
config.vm.provision "shell", inline: <<-SHELL
|
|
||||||
sudo yum -y update
|
|
||||||
echo "secret" | sudo passwd --stdin root
|
|
||||||
sudo cp -pr ~vagrant/.ssh /root
|
|
||||||
sudo chown -R root.root /root/.ssh
|
|
||||||
sudo yum -y install git python
|
|
||||||
sudo pip install --upgrade pip
|
|
||||||
if [ ! -d "/data/MySQLTuner-perl" ]; then
|
|
||||||
cd /data
|
|
||||||
sudo git clone https://github.com/major/MySQLTuner-perl.git
|
|
||||||
fi
|
|
||||||
|
|
||||||
sudo rpm -ivh https://dev.mysql.com/get/mysql80-community-release-fc23-7.noarch.rpm
|
|
||||||
sudo yum -y install perl-WWW-Mechanize-GZip perl-App-cpanminus perl-List-MoreUtils
|
|
||||||
sudo cpanm install File::Util
|
|
||||||
|
|
||||||
sudo yum -y install mysql-community-server mysql-community-client wget
|
|
||||||
sudo systemctl start mysqld.service
|
|
||||||
PASSWORD=$(sudo grep -i "temporary password" /var/log/mysqld.log | cut -d':' -f4 | xargs -n 1 echo)
|
|
||||||
echo "PASSWORD: $PASSWORD"
|
|
||||||
mysql -uroot -p$PASSWORD --connect-expired-password -e "ALTER USER 'root'@'localhost' IDENTIFIED BY 'MySqlSecr3t#'"
|
|
||||||
mysql -uroot -psecret -e 'select version();'
|
|
||||||
cd /data
|
|
||||||
[ -f "employees_db-full-1.0.6.tar.bz2" ] || sudo wget "https://launchpad.net/test-db/employees-db-1/1.0.6/+download/employees_db-full-1.0.6.tar.bz2"
|
|
||||||
sudo tar xvjf employees_db-full-1.0.6.tar.bz2
|
|
||||||
cd employees_db
|
|
||||||
cat employees.sql | mysql -uroot -pMySqlSecr3t#
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
cd MySQLTuner-perl
|
|
||||||
|
|
||||||
#perl mysqltuner.pl --user root --pass MySqlSecr3t# --idxstat --dbstat
|
|
||||||
SHELL
|
|
||||||
config.vm.provision :hostmanager
|
|
||||||
end
|
|
|
@ -1,8 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
rm -f Vagrantfile
|
VERSION=${1:-"10.4"}
|
||||||
cp Vagrantfile_for_MariaDB10.0 Vagrantfile
|
rm -f Vagrantfile
|
||||||
mkdir data
|
cp Vagrantfile_for_MariaDB${VERSION} Vagrantfile
|
||||||
vagrant plugin install vagrant-hostmanager
|
mkdir data
|
||||||
vagrant plugin install vagrant-vbguest
|
vagrant plugin install vagrant-hostmanager
|
||||||
vagrant plugin install vagrant-proxyconf
|
vagrant plugin install vagrant-vbguest
|
||||||
vagrant --provision up
|
vagrant plugin install vagrant-proxyconf
|
||||||
|
vagrant --provision up
|
||||||
|
|
8
bashrc
8
bashrc
|
@ -1,8 +0,0 @@
|
||||||
alias gst='git status'
|
|
||||||
alias gcm='git commit -m'
|
|
||||||
alias gmh='git log --follow -p --'
|
|
||||||
alias ll='ls -ls'
|
|
||||||
alias lh='ls -lsh'
|
|
||||||
alias la='ls -lsa'
|
|
||||||
alias gam='git status | grep "modified" | cut -d: -f2 | xargs -n 1 git add'
|
|
||||||
alias serve="python -m $(python -c 'import sys; print("http.server" if sys.version_info[:2] > (2,7) else "SimpleHTTPServer")')"
|
|
|
@ -601,6 +601,8 @@ mysql
|
||||||
MySQL
|
MySQL
|
||||||
dba
|
dba
|
||||||
mypass
|
mypass
|
||||||
|
mypasswd
|
||||||
|
mypassword
|
||||||
MyNewPass
|
MyNewPass
|
||||||
some_pass
|
some_pass
|
||||||
admin_pass
|
admin_pass
|
||||||
|
|
115
build/bashrc
Normal file
115
build/bashrc
Normal file
|
@ -0,0 +1,115 @@
|
||||||
|
# Some Alias
|
||||||
|
alias h=history
|
||||||
|
alias s=sudo
|
||||||
|
alias rsh='ssh -l root'
|
||||||
|
alias lh='ls -lsh'
|
||||||
|
alias ll='ls -ls'
|
||||||
|
alias la='ls -lsa'
|
||||||
|
|
||||||
|
alias gst='git status'
|
||||||
|
alias grm='git rm -f'
|
||||||
|
alias gadd='git add'
|
||||||
|
alias gcm='git commit -m'
|
||||||
|
alias gps='git push'
|
||||||
|
alias gpl='git pull'
|
||||||
|
alias glg='git log'
|
||||||
|
alias gmh='git log --follow -p --'
|
||||||
|
alias gbl='git blame'
|
||||||
|
alias grs='git reset --soft HEAD~1'
|
||||||
|
alias grh='git reset --hard HEAD~1'
|
||||||
|
alias serve="python -m $(python -c 'import sys; print("http.server" if sys.version_info[:2] > (2,7) else "SimpleHTTPServer")')"
|
||||||
|
|
||||||
|
|
||||||
|
gunt() {
|
||||||
|
git status | \
|
||||||
|
grep -vE '(Changes to be committed:| to publish your local commits|git add|git restore|On branch|Your branch|Untracked files|nclude in what will b|but untracked files present|no changes added to commit|modified:|deleted:|Changes not staged for commit)' |\
|
||||||
|
sort | uniq | \
|
||||||
|
xargs -n 1 $*
|
||||||
|
}
|
||||||
|
|
||||||
|
alias gam='git status | grep "modified" | cut -d: -f2 | xargs -n 1 git add'
|
||||||
|
|
||||||
|
gad() {
|
||||||
|
git status | \
|
||||||
|
grep 'deleted:' | \
|
||||||
|
cut -d: -f2- | \
|
||||||
|
sort | uniq | \
|
||||||
|
xargs -n 1 git rm -f
|
||||||
|
}
|
||||||
|
|
||||||
|
dcmd()
|
||||||
|
{
|
||||||
|
docker exec -i -t $1 bash
|
||||||
|
}
|
||||||
|
|
||||||
|
gen_mysqlalias()
|
||||||
|
{
|
||||||
|
input="$1"
|
||||||
|
|
||||||
|
while IFS='' read -r line
|
||||||
|
do
|
||||||
|
[ -z "$line" ] && continue
|
||||||
|
container_port=$(echo "$line" | cut -d\; -f1)
|
||||||
|
container_name=$(echo "$line" | cut -d\; -f2)
|
||||||
|
container_datadir=$(echo "$line" | cut -d\; -f3)
|
||||||
|
image_name=$(echo "$line" | cut -d\; -f4)
|
||||||
|
|
||||||
|
alias mysql_$container_name="mysql -u root -h 127.0.0.1 -P $container_port"
|
||||||
|
done < "$input"
|
||||||
|
}
|
||||||
|
|
||||||
|
exec_mysql()
|
||||||
|
{
|
||||||
|
input="$1"
|
||||||
|
name=$2
|
||||||
|
db=$3
|
||||||
|
sqlfile=$4
|
||||||
|
while IFS='' read -r line
|
||||||
|
do
|
||||||
|
[ -z "$line" ] && continue
|
||||||
|
echo "$line" | grep -q $name
|
||||||
|
[ $? -ne 0 ] && continue
|
||||||
|
container_port=$(echo "$line" | cut -d\; -f1)
|
||||||
|
container_name=$(echo "$line" | cut -d\; -f2)
|
||||||
|
container_datadir=$(echo "$line" | cut -d\; -f3)
|
||||||
|
image_name=$(echo "$line" | cut -d\; -f4)
|
||||||
|
|
||||||
|
|
||||||
|
echo "* Executing $sqlfile on $container_name"
|
||||||
|
cat $sqlfile | mysql -u root -h 127.0.0.1 -P $container_port
|
||||||
|
done < "$input"
|
||||||
|
}
|
||||||
|
exec_mysqls()
|
||||||
|
{
|
||||||
|
input="$1"
|
||||||
|
db=$2
|
||||||
|
sqlfile=$3
|
||||||
|
while IFS='' read -r line
|
||||||
|
do
|
||||||
|
[ -z "$line" ] && continue
|
||||||
|
container_port=$(echo "$line" | cut -d\; -f1)
|
||||||
|
container_name=$(echo "$line" | cut -d\; -f2)
|
||||||
|
container_datadir=$(echo "$line" | cut -d\; -f3)
|
||||||
|
image_name=$(echo "$line" | cut -d\; -f4)
|
||||||
|
|
||||||
|
|
||||||
|
echo "* Executing $sqlfile on $container_name"
|
||||||
|
cat $sqlfile | mysql -u root -h 127.0.0.1 -P $container_port
|
||||||
|
done < "$input"
|
||||||
|
}
|
||||||
|
|
||||||
|
gen_mysqlalias()
|
||||||
|
{
|
||||||
|
input="$1"
|
||||||
|
|
||||||
|
while IFS='' read -r line
|
||||||
|
do
|
||||||
|
[ -z "$line" ] && continue
|
||||||
|
container_port=$(echo "$line" | cut -d\; -f1)
|
||||||
|
container_name=$(echo "$line" | cut -d\; -f2)
|
||||||
|
container_datadir=$(echo "$line" | cut -d\; -f3)
|
||||||
|
image_name=$(echo "$line" | cut -d\; -f4)
|
||||||
|
|
||||||
|
alias mysql_$container_name="mysql -u root -h 127.0.0.1 -P $container_port"
|
||||||
|
done < "$input"
|
||||||
|
}
|
4
build/build_rpm.sh
Executable file → Normal file
4
build/build_rpm.sh
Executable file → Normal file
|
@ -1,10 +1,10 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
BUILD_DIR=`dirname $(readlink -f $0)`
|
BUILD_DIR="$(dirname $(readlink -f "$0"))"
|
||||||
|
|
||||||
VERSION=$(grep -Ei 'my \$tunerversion' $BUILD_DIR/../mysqltuner.pl | grep = | cut -d\" -f2)
|
VERSION=$(grep -Ei 'my \$tunerversion' $BUILD_DIR/../mysqltuner.pl | grep = | cut -d\" -f2)
|
||||||
cd $BUILD_DIR
|
cd $BUILD_DIR
|
||||||
sh ./clean.sh
|
sh ./clean.sh
|
||||||
|
|
||||||
perl -pe "s/%VERSION%/$VERSION/g" mysqltuner.spec.tpl > mysqltuner.spec
|
perl -pe "s/%VERSION%/$VERSION/g" mysqltuner.spec.tpl > mysqltuner.spec
|
||||||
mkdir -p $BUILD_DIR/mysqltuner-$VERSION
|
mkdir -p $BUILD_DIR/mysqltuner-$VERSION
|
||||||
|
|
0
build/clean.sh
Executable file → Normal file
0
build/clean.sh
Executable file → Normal file
5
build/clearContainer.sh
Normal file
5
build/clearContainer.sh
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
docker ps | awk '{ print $NF}' |grep -v NAMES | xargs -n 1 docker kill
|
||||||
|
docker ps -a | awk '{ print $NF}' |grep -v NAMES | xargs -n 1 docker rm
|
||||||
|
docker ps -a
|
15
build/configimg.conf
Normal file
15
build/configimg.conf
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
3306;mysql80;/var/lib/mysql8;mysql:8.0
|
||||||
|
3307;mysql57;/var/lib/mysql57;mysql:5.7
|
||||||
|
3308;mysql56;/var/lib/mysql56;mysql:5.6
|
||||||
|
3309;mysql55;/var/lib/mysql55;mysql:5.5
|
||||||
|
|
||||||
|
4306;percona80;/var/lib/percona8;percona/percona-server:8.0
|
||||||
|
4307;percona57;/var/lib/percona57;percona/percona-server:5.7
|
||||||
|
4308;percona56;/var/lib/percona56;percona/percona-server:5.6
|
||||||
|
|
||||||
|
5306;mariadb104;/var/lib/mariadb104;mariadb:10.4
|
||||||
|
5307;mariadb103;/var/lib/mariadb103;mariadb:10.3
|
||||||
|
5308;mariadb102;/var/lib/mariadb102;mariadb:10.2
|
||||||
|
5309;mariadb101;/var/lib/mariadb101;mariadb:10.1
|
||||||
|
5310;mariadb100;/var/lib/mariadb100;mariadb:10.0
|
||||||
|
5311;mariadb55;/var/lib/mariadb55;mariadb:5.5
|
90
build/createMassDockerImages.sh
Normal file
90
build/createMassDockerImages.sh
Normal file
|
@ -0,0 +1,90 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
input="./build/configimg.conf"
|
||||||
|
default_password="secret"
|
||||||
|
|
||||||
|
echo "[client]
|
||||||
|
user=root
|
||||||
|
password=$default_password" > $HOME/.my.cnf
|
||||||
|
|
||||||
|
chmod 600 $HOME/.my.cnf
|
||||||
|
|
||||||
|
[ -f "$input" ] || echo "
|
||||||
|
3306;mysql80;/var/lib/mysql8;mysql:8.0
|
||||||
|
3307;mysql57;/var/lib/mysql57;mysql:5.7
|
||||||
|
3308;mysql56;/var/lib/mysql56;mysql:5.6
|
||||||
|
3309;mysql55;/var/lib/mysql55;mysql:5.5
|
||||||
|
|
||||||
|
4306;percona80;/var/lib/percona8;percona/percona-server:8.0
|
||||||
|
4307;percona57;/var/lib/percona57;percona/percona-server:5.7
|
||||||
|
4308;percona56;/var/lib/percona56;percona/percona-server:5.6
|
||||||
|
|
||||||
|
5306;mariadb104;/var/lib/mariadb104;mariadb:10.4
|
||||||
|
5307;mariadb103;/var/lib/mariadb103;mariadb:10.3
|
||||||
|
5308;mariadb102;/var/lib/mariadb102;mariadb:10.2
|
||||||
|
5309;mariadb101;/var/lib/mariadb101;mariadb:10.1
|
||||||
|
5310;mariadb100;/var/lib/mariadb100;mariadb:10.0
|
||||||
|
5311;mariadb55;/var/lib/mariadb55;mariadb:5.5
|
||||||
|
" > "$input"
|
||||||
|
|
||||||
|
#
|
||||||
|
|
||||||
|
#echo '* PRUNING DOCKER SYSTEM DATA'
|
||||||
|
|
||||||
|
#[ "$1" = "clean" ] || docker system prune -a -f
|
||||||
|
# download all images
|
||||||
|
while IFS='' read -r line
|
||||||
|
do
|
||||||
|
[ -z "$line" ] && continue
|
||||||
|
container_port=$(echo "$line" | cut -d\; -f1)
|
||||||
|
container_name=$(echo "$line" | cut -d\; -f2)
|
||||||
|
container_datadir=$(echo "$line" | cut -d\; -f3)
|
||||||
|
image_name=$(echo "$line" | cut -d\; -f4)
|
||||||
|
|
||||||
|
if [ -n "$1" -a "$1" != "clean" ]; then
|
||||||
|
echo $line | grep -q "$1"
|
||||||
|
[ $? -eq 0 ] || continue
|
||||||
|
fi
|
||||||
|
echo "* PULLING DOCKER IMAGE: $image_name"
|
||||||
|
docker images | grep -E " $image_name$"
|
||||||
|
[ $? -ne 0 ] && docker pull $image_name
|
||||||
|
|
||||||
|
echo "* REMOVING CONTAINER : $image_name"
|
||||||
|
docker ps -a | grep -qE "$container_name^"
|
||||||
|
docker rm -f $container_name
|
||||||
|
|
||||||
|
if [ 1 -eq 0 ]; then
|
||||||
|
echo "* DELETING DATADIR: $container_datadir"
|
||||||
|
sudo rm -rf $container_datadir
|
||||||
|
[ "$1" = "clean" ] && continue
|
||||||
|
|
||||||
|
echo "* CREATING DATADIR: $container_datadir"
|
||||||
|
sudo mkdir -p $container_datadir
|
||||||
|
fi
|
||||||
|
#sudo chown -R mysql.mysql $container_datadir
|
||||||
|
sudo chmod 777 $container_datadir
|
||||||
|
echo "* STARTING CONTAINER: $container_name($container_port/TCP) BASED ON $image_name -> $container_datadir"
|
||||||
|
set -x
|
||||||
|
docker run -d -e MYSQL_ROOT_PASSWORD=$default_password -p $container_port:3306 --name $container_name -v $container_datadir:/var/lib/mysql $image_name
|
||||||
|
set +x
|
||||||
|
sleep 6s
|
||||||
|
echo "* LOGS: $container_name"
|
||||||
|
docker logs $container_name
|
||||||
|
echo "* LISTING PORTS: $container_name BASED ON $image_name"
|
||||||
|
docker port $container_name
|
||||||
|
|
||||||
|
echo "* LISTING VOLUMES: $container_name BASED ON $image_name"
|
||||||
|
docker inspect -f "{{ .Mounts }}" $container_name
|
||||||
|
|
||||||
|
echo "* LISTING $container_datadir"
|
||||||
|
ls -ls $container_datadir
|
||||||
|
#break
|
||||||
|
docker logs $container_name | grep -q "ready for connections"
|
||||||
|
done < "$input"
|
||||||
|
|
||||||
|
echo "* LISTING DOCKER IMAGES"
|
||||||
|
docker images
|
||||||
|
|
||||||
|
echo "* LISTING DOCKER CONTAINER"
|
||||||
|
docker ps
|
||||||
|
|
28
build/createTestEnvs.sh
Normal file
28
build/createTestEnvs.sh
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
source build/bashrc
|
||||||
|
|
||||||
|
systemctl status docker &>/dev/null
|
||||||
|
if [ $? -ne 0 ];then
|
||||||
|
sudo dnf install -y yum-utils device-mapper-persistent-data lvm2
|
||||||
|
sudo dnf -y install dnf-plugins-core
|
||||||
|
sudo dnf config-manager \
|
||||||
|
--add-repo \
|
||||||
|
https://download.docker.com/linux/fedora/docker-ce.repo
|
||||||
|
|
||||||
|
sudo dnf -y install docker-ce docker-ce-cli containerd.io
|
||||||
|
dnf list docker-ce --showduplicates | sort -r
|
||||||
|
|
||||||
|
sudo systemctl start docker
|
||||||
|
sudo systemctl enable docker
|
||||||
|
sudo usermod -aG docker vagrant
|
||||||
|
sudo systemctl daemon-reload
|
||||||
|
fi
|
||||||
|
|
||||||
|
sh build/createMassDockerImages.sh
|
||||||
|
|
||||||
|
sh build/fetchSampleDatabases.sh clean
|
||||||
|
sh build/fetchSampleDatabases.sh fetchall
|
||||||
|
|
||||||
|
exec_mysqls build/configimg.conf mysql contents/sakila-db/sakila-schema.sql
|
||||||
|
exec_mysqls build/configimg.conf mysql contents/sakila-db/sakila-data.sql
|
0
build/deployOn
Executable file → Normal file
0
build/deployOn
Executable file → Normal file
35
build/fetchSampleDatabases.sh
Normal file
35
build/fetchSampleDatabases.sh
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
|
||||||
|
DB_WORLD_URL="https://downloads.mysql.com/docs/world.sql.zip"
|
||||||
|
DB_WORLDX_URL="https://downloads.mysql.com/docs/world_x-db.zip"
|
||||||
|
DB_SAKILA_URL="https://downloads.mysql.com/docs/sakila-db.zip"
|
||||||
|
DB_MESSAGERIE_URL="https://downloads.mysql.com/docs/menagerie-db.zip"
|
||||||
|
DB_TESTDB_URL="https://github.com/datacharmer/test_db/archive/master.zip"
|
||||||
|
|
||||||
|
getVal()
|
||||||
|
{
|
||||||
|
local vari=$1
|
||||||
|
eval "echo \$$vari"
|
||||||
|
}
|
||||||
|
case "$1" in
|
||||||
|
"fetchall")
|
||||||
|
for sample in WORLD WORLDX SAKILA MESSAGERIE TESTDB; do
|
||||||
|
sh $0 fetch $sample
|
||||||
|
done
|
||||||
|
;;
|
||||||
|
"fetch")
|
||||||
|
[ -z "$2" ] && exit 1
|
||||||
|
mkdir -p ./contents
|
||||||
|
[ -f "contents/$(basename $(getVal "DB_$2_URL"))" ] || wget -O contents/$(basename $(getVal "DB_$2_URL")) $(getVal "DB_$2_URL")
|
||||||
|
if [ $? -eq 0 ];then
|
||||||
|
(cd contents; unzip $( basename $(getVal "DB_$2_URL")) )
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
"clean")
|
||||||
|
rm -rf contents
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Unknown operation: $1"
|
||||||
|
;;
|
||||||
|
esac
|
13
build/genFeatures.sh
Normal file
13
build/genFeatures.sh
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Update Feature list
|
||||||
|
(
|
||||||
|
export LANG=C
|
||||||
|
echo -e "Features list for option: --feature (dev only)\n---\n\n"
|
||||||
|
grep -E '^sub ' ./mysqltuner.pl | \
|
||||||
|
perl -pe 's/sub //;s/\s*\{//g' | \
|
||||||
|
sort -n | \
|
||||||
|
perl -pe 's/^/* /g' | \
|
||||||
|
grep -vE '(get_|close_|check_|memerror|cpu_cores|compare_tuner_version|grep_file_contents|update_tuner_version|mysql_version_|calculations|merge_hash|os_setup|pretty_uptime|update_tuner_version|human_size|string2file|file2|arr2|dump|which|percentage|trim|is_|hr_|info|print|select|wrap|remove_)'
|
||||||
|
) > ./FEATURES.md
|
||||||
|
cat ./FEATURES.md
|
7
build/installStaff.sh
Normal file
7
build/installStaff.sh
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
apt install -y cpanminus libpod-markdown-perl libwww-mechanize-gzip-perl perltidy dos2unix
|
||||||
|
|
||||||
|
cpanm File::Util
|
||||||
|
|
||||||
|
#####
|
11
build/publishtodockerhub.sh
Normal file
11
build/publishtodockerhub.sh
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
[ -f "./.env" ] && source ./.env
|
||||||
|
[ -f "../.env" ] && source ../.env
|
||||||
|
|
||||||
|
VERSION=$1
|
||||||
|
|
||||||
|
docker login -u $DOCKER_USER_LOGIN -p $DOCKER_USER_PASSWORD
|
||||||
|
docker tag jmrenouard/mysqltuner:latest jmrenouard/mysqltuner:$VERSION
|
||||||
|
docker push jmrenouard/mysqltuner:latest
|
||||||
|
docker push jmrenouard/mysqltuner:$VERSION
|
26
build/runMT.sh
Normal file
26
build/runMT.sh
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
input="./build/configimg.conf"
|
||||||
|
|
||||||
|
while IFS='' read -r line
|
||||||
|
do
|
||||||
|
[ -z "$line" ] && continue
|
||||||
|
container_port=$(echo "$line" | cut -d\; -f1)
|
||||||
|
container_name=$(echo "$line" | cut -d\; -f2)
|
||||||
|
container_datadir=$(echo "$line" | cut -d\; -f3)
|
||||||
|
image_name=$(echo "$line" | cut -d\; -f4)
|
||||||
|
|
||||||
|
if [ -n "$1" -a "$1" != "$container_name" ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
shift
|
||||||
|
sudo rm -f /var/lib/mysql
|
||||||
|
sudo ln -sf $container_datadir /var/lib/mysql
|
||||||
|
sudo chmod 777 /var/lib/mysql
|
||||||
|
|
||||||
|
#sudo docker logs $container_name > /tmp/mysqld.log
|
||||||
|
ls -ls /var/lib | grep -E 'mysql$'
|
||||||
|
#set +x
|
||||||
|
perl mysqltuner.pl $* --host 127.0.0.1 --port $container_port
|
||||||
|
exit $?
|
||||||
|
done < "$input"
|
|
@ -14,14 +14,15 @@ my $i=1;
|
||||||
while (my $row = <$fh>) {
|
while (my $row = <$fh>) {
|
||||||
chomp $row;
|
chomp $row;
|
||||||
if ($row =~ /^$headerSep/) {
|
if ($row =~ /^$headerSep/) {
|
||||||
print "</pre>\n";
|
print "</pre>\n";
|
||||||
$row =~ s/$headerSep//g;
|
$row =~ s/$headerSep//g;
|
||||||
print "<H3 >$row</H3>\n";
|
print "<H3 >$row</H3>\n";
|
||||||
print "<pre>";
|
print "<pre>";
|
||||||
$i++;
|
$i++;
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
print "$row\n" unless $row =~ /^\s*$/;
|
print "$row\n" unless $row =~ /^\s*$/;
|
||||||
}
|
}
|
||||||
print "</pre>\n";
|
print "</pre>\n";
|
||||||
close $fh;
|
close $fh;
|
||||||
|
|
|
@ -1,79 +1,80 @@
|
||||||
#!/usr/bin/perl
|
#!/usr/bin/env perl
|
||||||
use warnings;
|
use warnings;
|
||||||
use strict;
|
use strict;
|
||||||
use WWW::Mechanize::GZip;
|
use WWW::Mechanize::GZip;
|
||||||
use File::Util;
|
use File::Util;
|
||||||
use Data::Dumper;
|
use Data::Dumper;
|
||||||
use List::MoreUtils qw(uniq);
|
use List::MoreUtils qw(uniq);
|
||||||
my $verbose=1;
|
my $verbose=1;
|
||||||
sub AUTOLOAD {
|
sub AUTOLOAD {
|
||||||
use vars qw($AUTOLOAD);
|
use vars qw($AUTOLOAD);
|
||||||
my $cmd = $AUTOLOAD;
|
my $cmd = $AUTOLOAD;
|
||||||
$cmd=~s/.*:://;
|
$cmd=~s/.*:://;
|
||||||
print "\n","*" x 60, "\n* Catching system call : $cmd \n", "*"x60 if defined $verbose;
|
print "\n","*" x 60, "\n* Catching system call : $cmd \n", "*"x60 if defined $verbose;
|
||||||
print "\nExecution : \t", $cmd, " ", join " ", @_ if defined $verbose;
|
print "\nExecution : \t", $cmd, " ", join " ", @_ if defined $verbose;
|
||||||
my $outp=`$cmd @_ 2>&1`;
|
my $outp=`$cmd @_ 2>&1`;
|
||||||
my $rc=$?;
|
my $rc=$?;
|
||||||
print "\nResult : \t$outp", if defined $verbose;
|
print "\nResult : \t$outp", if defined $verbose;
|
||||||
print "Code : \t", $rc, "\n" if defined $verbose;
|
print "Code : \t", $rc, "\n" if defined $verbose;
|
||||||
return $rc;
|
return $rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
my $mech = WWW::Mechanize->new();
|
my $mech = WWW::Mechanize->new();
|
||||||
$mech->agent('Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0');
|
$mech->agent('Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0');
|
||||||
#$mech->proxy( ['http'], 'http://XXX.XXX.XXX.XXX:3128' );
|
#$mech->proxy( ['http'], 'http://XXX.XXX.XXX.XXX:3128' );
|
||||||
#$mech->proxy( ['https'], 'http://XXX.XXX.XXX.XXX:3128' );
|
#$mech->proxy( ['https'], 'http://XXX.XXX.XXX.XXX:3128' );
|
||||||
$mech->env_proxy;
|
$mech->env_proxy;
|
||||||
|
|
||||||
|
|
||||||
$mech->ssl_opts( 'verify_hostname' => 0 );
|
$mech->ssl_opts( 'verify_hostname' => 0 );
|
||||||
|
|
||||||
|
|
||||||
$mech->requests_redirectable(['GET', 'POST', 'HEAD']);
|
$mech->requests_redirectable(['GET', 'POST', 'HEAD']);
|
||||||
|
|
||||||
|
|
||||||
$mech->add_handler("request_send", sub { print '#'x80,"\nSEND REQUEST:\n"; shift->dump; print '#'x80,"\n";return } ) if defined $verbose;
|
$mech->add_handler("request_send", sub { print '#'x80,"\nSEND REQUEST:\n"; shift->dump; print '#'x80,"\n";return } ) if defined $verbose;
|
||||||
$mech->add_handler("response_done", sub { print '#'x80,"\nDONE RESPONSE:\n"; shift->dump; print '#'x80,"\n"; return }) if defined $verbose;
|
$mech->add_handler("response_done", sub { print '#'x80,"\nDONE RESPONSE:\n"; shift->dump; print '#'x80,"\n"; return }) if defined $verbose;
|
||||||
$mech->add_handler("response_redirect" => sub { print '#'x80,"\nREDIRECT RESPONSE:\n"; shift->dump; print '#'x80,"\n"; return }) if defined $verbose;
|
$mech->add_handler("response_redirect" => sub { print '#'x80,"\nREDIRECT RESPONSE:\n"; shift->dump; print '#'x80,"\n"; return }) if defined $verbose;
|
||||||
|
|
||||||
|
|
||||||
my $url = 'http://cve.mitre.org/data/downloads/allitems.csv';
|
my $url = 'http://cve.mitre.org/data/downloads/allitems.csv';
|
||||||
my $resp;
|
my $resp;
|
||||||
|
|
||||||
unless (-f 'cve.csv') {
|
unless (-f 'cve.csv') {
|
||||||
$resp=$mech->get($url);
|
$resp=$mech->get($url);
|
||||||
$mech->save_content( "cve.csv" );
|
$mech->save_content( "cve.csv" );
|
||||||
}
|
}
|
||||||
my $f=File::Util->new( readlimit => 152428800);
|
my $f=File::Util->new( readlimit => 152428800);
|
||||||
File::Util->flock_rules( qw/ IGNORE/ );
|
File::Util->flock_rules( qw/ IGNORE/ );
|
||||||
|
|
||||||
my @versions;
|
my @versions;
|
||||||
my $temp;
|
my $temp;
|
||||||
unlink '../vulnerabilities.csv' if -f '../vulnerabilities.csv';
|
unlink './vulnerabilities.csv' if -f './vulnerabilities.csv';
|
||||||
open(CVE, 'cve.csv') or die("Could not open file.");
|
open(CVE, 'cve.csv') or die("Could not open file.");
|
||||||
foreach my $line (<CVE>) {
|
foreach my $line (<CVE>) {
|
||||||
if ($line =~ /(mysql|mariadb)/i
|
if ($line =~ /(mysql|mariadb|percona)/i
|
||||||
and $line =~ /server/i
|
and $line =~ /server/i
|
||||||
and $line =~ /CANDIDATE/i
|
and $line =~ /CANDIDATE/i
|
||||||
and $line !~ /MaxDB/i
|
and $line !~ /MaxDB/i
|
||||||
and $line !~ /\*\* REJECT \*\* /i
|
and $line !~ /\*\* REJECT \*\* /i
|
||||||
and $line !~ /\*\* DISPUTED \*\* /i
|
and $line !~ /\*\* DISPUTED \*\* /i
|
||||||
and $line !~ /(Radius|Proofpoint|Active\ Record|XAMPP|TGS\ Content|e107|post-installation|Apache\ HTTP|Zmanda|pforum|phpMyAdmin|Proxy\ Server|on\ Windows|ADOdb|Mac\ OS|Dreamweaver|InterWorx|libapache2|cisco|ProFTPD)/i) {
|
and $line !~ /(Radius|Proofpoint|Active\ Record|XAMPP|TGS\ Content|e107|post-installation|Apache\ HTTP|Zmanda|pforum|phpMyAdmin|Proxy\ Server|on\ Windows|ADOdb|Mac\ OS|Dreamweaver|InterWorx|libapache2|cisco|ProFTPD)/i) {
|
||||||
$line =~ s/,/;/g;
|
$line =~ s/,/;/g;
|
||||||
|
|
||||||
@versions = $line =~/(\d{1,2}\.\d+\.[\d]+)/g;
|
@versions = $line =~/(\d{1,2}\.\d+\.[\d]+)/g;
|
||||||
|
|
||||||
foreach my $vers (uniq(@versions)) {
|
foreach my $vers (uniq(@versions)) {
|
||||||
my @nb=split('\.', $vers);
|
my @nb=split('\.', $vers);
|
||||||
$nb[2]-- if ($line =~ /before/i);
|
$nb[2]-- if ($line =~ /before/i);
|
||||||
#print $vers."\n".Dumper @nb;
|
#print $vers."\n".Dumper @nb;
|
||||||
#print "$line";
|
#print "$line";
|
||||||
#exit 0 if ($line =~/before/i) ;
|
#exit 0 if ($line =~/before/i) ;
|
||||||
$f->write_file('file' => '../vulnerabilities.csv', 'content' => "$nb[0].$nb[1].$nb[2];$nb[0];$nb[1];$nb[2];$line", 'mode' => 'append');
|
$f->write_file('file' => './vulnerabilities.csv', 'content' => "$nb[0].$nb[1].$nb[2];$nb[0];$nb[1];$nb[2];$line", 'mode' => 'append');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
close(CVE);
|
close(CVE);
|
||||||
#unlink ('cve.csv') if (-f 'cve.csv');
|
chmod 0644, "./cve.csv", "../vulnerabilities.csv";
|
||||||
|
#unlink ('cve.csv') if (-f 'cve.csv');
|
||||||
exit(0);
|
|
||||||
|
exit(0);
|
||||||
|
|
|
@ -8,8 +8,13 @@ perltidy -b mysqltuner.pl
|
||||||
)
|
)
|
||||||
echo "* Update CVE list"
|
echo "* Update CVE list"
|
||||||
perl updateCVElist.pl
|
perl updateCVElist.pl
|
||||||
|
dos2unix ../mysqltuner.pl
|
||||||
|
|
||||||
git add ../vulnerabilities.csv ../mysqltuner.pl ../USAGE.md
|
# Update Feature list
|
||||||
|
bash ./genFeatures.sh
|
||||||
|
|
||||||
|
git add ../vulnerabilities.csv ../mysqltuner.pl ../USAGE.md ../FEATURES.md
|
||||||
git commit -m 'Update Vulnerabilities list
|
git commit -m 'Update Vulnerabilities list
|
||||||
Indenting mysqltuner
|
Indenting mysqltuner
|
||||||
Update Usage information'
|
Update Usage information
|
||||||
|
Regenerate fetures list'
|
||||||
|
|
1
examples/github/result/mariadb/10.2/ifs_ALL_PLUGINS.csv
Normal file
1
examples/github/result/mariadb/10.2/ifs_ALL_PLUGINS.csv
Normal file
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
||||||
|
"big5","big5_chinese_ci","Big5 Traditional Chinese","2""dec8","dec8_swedish_ci","DEC West European","1""cp850","cp850_general_ci","DOS West European","1""hp8","hp8_english_ci","HP West European","1""koi8r","koi8r_general_ci","KOI8-R Relcom Russian","1""latin1","latin1_swedish_ci","cp1252 West European","1""latin2","latin2_general_ci","ISO 8859-2 Central European","1""swe7","swe7_swedish_ci","7bit Swedish","1""ascii","ascii_general_ci","US ASCII","1""ujis","ujis_japanese_ci","EUC-JP Japanese","3""sjis","sjis_japanese_ci","Shift-JIS Japanese","2""hebrew","hebrew_general_ci","ISO 8859-8 Hebrew","1""tis620","tis620_thai_ci","TIS620 Thai","1""euckr","euckr_korean_ci","EUC-KR Korean","2""koi8u","koi8u_general_ci","KOI8-U Ukrainian","1""gb2312","gb2312_chinese_ci","GB2312 Simplified Chinese","2""greek","greek_general_ci","ISO 8859-7 Greek","1""cp1250","cp1250_general_ci","Windows Central European","1""gbk","gbk_chinese_ci","GBK Simplified Chinese","2""latin5","latin5_turkish_ci","ISO 8859-9 Turkish","1""armscii8","armscii8_general_ci","ARMSCII-8 Armenian","1""utf8","utf8_general_ci","UTF-8 Unicode","3""ucs2","ucs2_general_ci","UCS-2 Unicode","2""cp866","cp866_general_ci","DOS Russian","1""keybcs2","keybcs2_general_ci","DOS Kamenicky Czech-Slovak","1""macce","macce_general_ci","Mac Central European","1""macroman","macroman_general_ci","Mac West European","1""cp852","cp852_general_ci","DOS Central European","1""latin7","latin7_general_ci","ISO 8859-13 Baltic","1""utf8mb4","utf8mb4_general_ci","UTF-8 Unicode","4""cp1251","cp1251_general_ci","Windows Cyrillic","1""utf16","utf16_general_ci","UTF-16 Unicode","4""utf16le","utf16le_general_ci","UTF-16LE Unicode","4""cp1256","cp1256_general_ci","Windows Arabic","1""cp1257","cp1257_general_ci","Windows Baltic","1""utf32","utf32_general_ci","UTF-32 Unicode","4""binary","binary","Binary pseudo charset","1""geostd8","geostd8_general_ci","GEOSTD8 Georgian","1""cp932","cp932_japanese_ci","SJIS for Windows Japanese","2""eucjpms","eucjpms_japanese_ci","UJIS for Windows Japanese","3"
|
|
1
examples/github/result/mariadb/10.2/ifs_COLLATIONS.csv
Normal file
1
examples/github/result/mariadb/10.2/ifs_COLLATIONS.csv
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
examples/github/result/mariadb/10.2/ifs_COLUMNS.csv
Normal file
1
examples/github/result/mariadb/10.2/ifs_COLUMNS.csv
Normal file
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
||||||
|
"NULL"
|
|
1
examples/github/result/mariadb/10.2/ifs_ENGINES.csv
Normal file
1
examples/github/result/mariadb/10.2/ifs_ENGINES.csv
Normal file
|
@ -0,0 +1 @@
|
||||||
|
"MRG_MyISAM","YES","Collection of identical MyISAM tables","NO","NO","NO""CSV","YES","Stores tables as CSV files","NO","NO","NO""SEQUENCE","YES","Generated tables filled with sequential values","YES","NO","YES""MyISAM","YES","Non-transactional engine with good performance and small data footprint","NO","NO","NO""MEMORY","YES","Hash based, stored in memory, useful for temporary tables","NO","NO","NO""InnoDB","DEFAULT","Supports transactions, row-level locking, foreign keys and encryption for tables","YES","YES","YES""Aria","YES","Crash-safe tables with MyISAM heritage","NO","NO","NO""PERFORMANCE_SCHEMA","YES","Performance Schema","NO","NO","NO"
|
|
0
examples/github/result/mariadb/10.2/ifs_EVENTS.csv
Normal file
0
examples/github/result/mariadb/10.2/ifs_EVENTS.csv
Normal file
|
0
examples/github/result/mariadb/10.2/ifs_FILES.csv
Normal file
0
examples/github/result/mariadb/10.2/ifs_FILES.csv
Normal file
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
||||||
|
"0","8192","1016","6989","2564","0","0","0","0","0","193","1512913","4.020749567717339","31518.36420074582","568","9401","10115","11.833086810691444","195.85008645653215","210.72477656715486","20519569","1000","0","73","254","0","5.291556425907793","0","4010","3","0","0"
|
|
1
examples/github/result/mariadb/10.2/ifs_INNODB_CMP.csv
Normal file
1
examples/github/result/mariadb/10.2/ifs_INNODB_CMP.csv
Normal file
|
@ -0,0 +1 @@
|
||||||
|
"1024","0","0","0","0","0""2048","0","0","0","0","0""4096","0","0","0","0","0""8192","0","0","0","0","0""16384","0","0","0","0","0"
|
|
|
@ -0,0 +1 @@
|
||||||
|
"1024","0","0","0","0","0""2048","0","0","0","0","0""4096","0","0","0","0","0""8192","0","0","0","0","0""16384","0","0","0","0","0"
|
|
|
@ -0,0 +1 @@
|
||||||
|
"1024","0","0","0","0","0""2048","0","0","0","0","0""4096","0","0","0","0","0""8192","0","0","0","0","0""16384","0","0","0","0","0"
|
|
|
@ -0,0 +1 @@
|
||||||
|
"1024","0","0","0","0","0""2048","0","0","0","0","0""4096","0","0","0","0","0""8192","0","0","0","0","0""16384","0","0","0","0","0"
|
|
|
@ -0,0 +1 @@
|
||||||
|
"a""about""an""are""as""at""be""by""com""de""en""for""from""how""i""in""is""it""la""of""on""or""that""the""this""to""was""what""when""where""who""will""with""und""the""www"
|
|
0
examples/github/result/mariadb/10.2/ifs_INNODB_LOCKS.csv
Normal file
0
examples/github/result/mariadb/10.2/ifs_INNODB_LOCKS.csv
Normal file
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
||||||
|
"dict0dict.cc:922","dict0dict.cc","922","15""log0log.cc:698","log0log.cc","698","9""btr0sea.cc:190","btr0sea.cc","190","33""btr0sea.cc:190","btr0sea.cc","190","1""buf_block_t::lock","combined buf0buf.cc","1475","20"
|
|
|
@ -0,0 +1 @@
|
||||||
|
"11","ID","0","1","524292","0""11","FOR_NAME","1","1","524292","0""11","REF_NAME","2","1","524292","0""11","N_COLS","3","6","0","4""12","ID","0","1","524292","0""12","POS","1","6","0","4""12","FOR_COL_NAME","2","1","524292","0""12","REF_COL_NAME","3","1","524292","0""13","SPACE","0","6","0","4""13","NAME","1","1","524292","0""13","FLAGS","2","6","0","4""14","SPACE","0","6","0","4""14","PATH","1","1","524292","0""15","TABLE_ID","0","6","0","8""15","POS","1","6","0","4""15","BASE_POS","2","6","0","4""16","database_name","0","12","5439759","192""16","table_name","1","12","5443855","597""16","last_update","2","3","526087","4""16","n_rows","3","6","1800","8""16","clustered_index_size","4","6","1800","8""16","sum_of_other_index_sizes","5","6","1800","8""17","database_name","0","12","5439759","192""17","table_name","1","12","5443855","597""17","index_name","2","12","5439759","192""17","last_update","3","3","526087","4""17","stat_name","4","12","5439759","192""17","stat_value","5","6","1800","8""17","sample_size","6","6","1544","8""17","stat_description","7","12","5443855","3072""18","domain_id","0","6","1795","4""18","sub_id","1","6","1800","8""18","server_id","2","6","1795","4""18","seq_no","3","6","1800","8""19","emp_no","0","6","1283","4""19","birth_date","1","6","1290","3""19","first_name","2","1","524559","14""19","last_name","3","1","524559","16""19","gender","4","6","1022","1""19","hire_date","5","6","1290","3""20","dept_no","0","2","524798","4""20","dept_name","1","1","524559","40""21","emp_no","0","6","1283","4""21","dept_no","1","2","524798","4""21","from_date","2","6","1290","3""21","to_date","3","6","1290","3""22","emp_no","0","6","1283","4""22","dept_no","1","2","524798","4""22","from_date","2","6","1290","3""22","to_date","3","6","1290","3""23","emp_no","0","6","1283","4""23","title","1","1","524559","50""23","from_date","2","6","1290","3""23","to_date","3","6","1034","3""24","emp_no","0","6","1283","4""24","salary","1","6","1283","4""24","from_date","2","6","1290","3""24","to_date","3","6","1290","3"
|
|
|
@ -0,0 +1 @@
|
||||||
|
"1","./mysql/innodb_table_stats.ibd""2","./mysql/innodb_index_stats.ibd""3","./mysql/gtid_slave_pos.ibd""4","./employees/employees.ibd""5","./employees/departments.ibd""6","./employees/dept_manager.ibd""7","./employees/dept_emp.ibd""8","./employees/titles.ibd""9","./employees/salaries.ibd"
|
|
|
@ -0,0 +1 @@
|
||||||
|
"11","ID","0""12","FOR_NAME","0""13","REF_NAME","0""14","ID","0""14","POS","1""15","SPACE","0""16","SPACE","0""17","TABLE_ID","0""17","POS","1""17","BASE_POS","2""18","database_name","0""18","table_name","1""19","database_name","0""19","table_name","1""19","index_name","2""19","stat_name","3""20","domain_id","0""20","sub_id","1""21","emp_no","0""22","dept_no","0""23","dept_name","0""24","emp_no","0""24","dept_no","1""25","dept_no","0""26","emp_no","0""26","dept_no","1""27","dept_no","0""28","emp_no","0""28","title","1""28","from_date","2""29","emp_no","0""29","from_date","1"
|
|
|
@ -0,0 +1 @@
|
||||||
|
"employees/dept_emp_ibfk_1","employees/dept_emp","employees/employees","1","1""employees/dept_emp_ibfk_2","employees/dept_emp","employees/departments","1","1""employees/dept_manager_ibfk_1","employees/dept_manager","employees/employees","1","1""employees/dept_manager_ibfk_2","employees/dept_manager","employees/departments","1","1""employees/salaries_ibfk_1","employees/salaries","employees/employees","1","1""employees/titles_ibfk_1","employees/titles","employees/employees","1","1"
|
|
|
@ -0,0 +1 @@
|
||||||
|
"employees/dept_emp_ibfk_1","emp_no","emp_no","0""employees/dept_emp_ibfk_2","dept_no","dept_no","0""employees/dept_manager_ibfk_1","emp_no","emp_no","0""employees/dept_manager_ibfk_2","dept_no","dept_no","0""employees/salaries_ibfk_1","emp_no","emp_no","0""employees/titles_ibfk_1","emp_no","emp_no","0"
|
|
|
@ -0,0 +1 @@
|
||||||
|
"11","ID_IND","11","3","1","302","0","50""12","FOR_IND","11","0","1","303","0","50""13","REF_IND","11","0","1","304","0","50""14","ID_IND","12","3","2","305","0","50""15","SYS_TABLESPACES_SPACE","13","3","1","307","0","50""16","SYS_DATAFILES_SPACE","14","3","1","308","0","50""17","BASE_IDX","15","3","3","310","0","50""18","PRIMARY","16","3","2","3","1","50""19","PRIMARY","17","3","4","3","2","50""20","PRIMARY","18","3","2","3","3","50""21","PRIMARY","19","3","1","3","4","50""22","PRIMARY","20","3","1","3","5","50""23","dept_name","20","2","1","4","5","50""24","PRIMARY","21","3","2","3","6","50""25","dept_no","21","0","1","4","6","50""26","PRIMARY","22","3","2","3","7","50""27","dept_no","22","0","1","4","7","50""28","PRIMARY","23","3","3","3","8","50""29","PRIMARY","24","3","2","3","9","50"
|
|
|
@ -0,0 +1 @@
|
||||||
|
"14","SYS_DATAFILES","0","5","0","Antelope","Redundant","0","System""11","SYS_FOREIGN","0","7","0","Antelope","Redundant","0","System""12","SYS_FOREIGN_COLS","0","7","0","Antelope","Redundant","0","System""13","SYS_TABLESPACES","0","6","0","Antelope","Redundant","0","System""15","SYS_VIRTUAL","0","6","0","Antelope","Redundant","0","System""20","employees/departments","33","5","5","Barracuda","Dynamic","0","Single""22","employees/dept_emp","33","7","7","Barracuda","Dynamic","0","Single""21","employees/dept_manager","33","7","6","Barracuda","Dynamic","0","Single""19","employees/employees","33","9","4","Barracuda","Dynamic","0","Single""24","employees/salaries","33","7","9","Barracuda","Dynamic","0","Single""23","employees/titles","33","7","8","Barracuda","Dynamic","0","Single""18","mysql/gtid_slave_pos","33","7","3","Barracuda","Dynamic","0","Single""17","mysql/innodb_index_stats","33","11","2","Barracuda","Dynamic","0","Single""16","mysql/innodb_table_stats","33","9","1","Barracuda","Dynamic","0","Single"
|
|
|
@ -0,0 +1 @@
|
||||||
|
"1","mysql/innodb_table_stats","33","Barracuda","Dynamic","16384","16384","Single","4096","98304","98304""2","mysql/innodb_index_stats","33","Barracuda","Dynamic","16384","16384","Single","4096","98304","98304""3","mysql/gtid_slave_pos","33","Barracuda","Dynamic","16384","16384","Single","4096","98304","98304""4","employees/employees","33","Barracuda","Dynamic","16384","16384","Single","4096","23068672","23072768""5","employees/departments","33","Barracuda","Dynamic","16384","16384","Single","4096","114688","118784""6","employees/dept_manager","33","Barracuda","Dynamic","16384","16384","Single","4096","114688","118784""7","employees/dept_emp","33","Barracuda","Dynamic","16384","16384","Single","4096","26214400","26218496""8","employees/titles","33","Barracuda","Dynamic","16384","16384","Single","4096","28311552","28315648""9","employees/salaries","33","Barracuda","Dynamic","16384","16384","Single","4096","109051904","109056000"
|
|
|
@ -0,0 +1 @@
|
||||||
|
"14","SYS_DATAFILES","Uninitialized","0","0","0","0","0","0""11","SYS_FOREIGN","Uninitialized","0","0","0","0","0","0""12","SYS_FOREIGN_COLS","Uninitialized","0","0","0","0","0","0""13","SYS_TABLESPACES","Uninitialized","0","0","0","0","0","0""15","SYS_VIRTUAL","Uninitialized","0","0","0","0","0","0""20","employees/departments","Initialized","9","1","1","0","0","1""22","employees/dept_emp","Initialized","331570","737","353","0","0","2""21","employees/dept_manager","Initialized","24","1","1","0","0","1""19","employees/employees","Initialized","299335","929","0","0","0","1""24","employees/salaries","Initialized","2844047","1","0","86302","0","1""23","employees/titles","Initialized","442308","1252","0","0","0","1""18","mysql/gtid_slave_pos","Initialized","0","1","0","0","0","1""17","mysql/innodb_index_stats","Initialized","38","1","0","0","0","1""16","mysql/innodb_table_stats","Initialized","7","1","0","0","0","1"
|
|
|
@ -0,0 +1 @@
|
||||||
|
"0","innodb_system","0","NULL","NULL","NULL","0","0""3","mysql/gtid_slave_pos","0","NULL","NULL","NULL","0","0""2","mysql/innodb_index_stats","0","NULL","NULL","NULL","0","0""1","mysql/innodb_table_stats","0","NULL","NULL","NULL","0","0""4","employees/employees","0","NULL","NULL","NULL","0","0""5","employees/departments","0","NULL","NULL","NULL","0","0""6","employees/dept_manager","0","NULL","NULL","NULL","0","0""7","employees/dept_emp","0","NULL","NULL","NULL","0","0""8","employees/titles","0","NULL","NULL","NULL","0","0""9","employees/salaries","0","NULL","NULL","NULL","0","0"
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue