Skip to content

Commit da858bd

Browse files
committed
2 parents 836fab6 + 5b1dbd3 commit da858bd

File tree

9 files changed

+828
-562
lines changed

9 files changed

+828
-562
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ build/mysqltuner.spec
33
build/build.log
44
build/cve*
55
build/vulnerabilities*
6+
*.bak

CONTRIBUTING.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ following restrictions:
2727
respect the opinions of others.
2828

2929

30-
##Before submitting an issue##
30+
## Before submitting an issue
3131

3232
1. Upgrade to the latest version of MySQLTuner and see if the problem remains
3333

@@ -47,7 +47,7 @@ Good bug reports are extremely helpful — thank you!
4747

4848
Guidelines for bug reports:
4949

50-
1. **Use the [GitHub issue search](https://github.com/major/MySQLTuner-perl/search?type=Issues)** — check if the issue has already been
50+
1. **Use the [GitHub issue search]** — check if the issue has already been
5151
reported.
5252

5353
2. **Check if the bug has already been fixed** — try to reproduce it using the
@@ -100,13 +100,13 @@ to MySQLTuner will be evaluated on a combination of scope (how well it fits into
100100
project), maintenance burden and general usefulness.
101101

102102
Creating something great often means saying no to seemingly good ideas. Don't
103-
dispair if your feature request isn't accepted, take action! Fork the
103+
despair if your feature request isn't accepted, take action! Fork the
104104
repository, build your idea and share it with others. We released MySQLTuner under
105105
the MIT License for this purpose precisely. Open source works best when smart
106106
and dedicated people riff off of each others' ideas to make even greater things.
107107

108-
## New feature request ##
109-
* You can find Enhancement asked by community at [Enhancement issue](https://github.com/major/MySQLTuner-perl/labels/enhancement)
108+
## New feature request
109+
You can find Enhancement asked by community at [Enhancement issue]
110110

111111
<a name="pull-requests"></a>
112112
## Pull requests
@@ -153,8 +153,7 @@ these guidelines is the best way to get your work included in MySQLTuner.
153153
git checkout -b <topic-branch-name>
154154
```
155155

156-
4. Commit your changes in logical chunks. Please adhere to these [git commit
157-
message guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
156+
4. Commit your changes in logical chunks. Please adhere to these [git commit message guidelines]
158157
or your code is unlikely be merged into the main project. Use Git's
159158
[interactive rebase](https://help.github.com/articles/interactive-rebase)
160159
feature to tidy up your commits before making them public.
@@ -171,18 +170,23 @@ these guidelines is the best way to get your work included in MySQLTuner.
171170
git push origin <topic-branch-name>
172171
```
173172

174-
7. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/)
175-
with a clear title and description.
173+
7. [Open a Pull Request] with a clear title and description.
176174

177175
**IMPORTANT**: By submitting a patch, you agree to allow the project owner to
178-
license your work under the [GPLv3 License](https://en.wikipedia.org/wiki/GNU_General_Public_License).
176+
license your work under the [GPLv3 License].
179177

180-
Copy of the license is available at [LICENSE](https://github.com/major/MySQLTuner-perl/blob/master/LICENSE)
178+
Copy of the license is available at [LICENSE]
181179

182180
<a name="code-conventions"></a>
183-
#### MySQLTuner Code Conventions
181+
## MySQLTuner Code Conventions
184182

185183
1. Check code convention using **perltidy** and **perlcritic**
186184
2. Don't manually update the version number in `mysqltuner.pl`.
187-
188185

186+
187+
[Enhancement issue]:https://github.com/major/MySQLTuner-perl/labels/enhancement
188+
[GitHub issue search]:https://github.com/major/MySQLTuner-perl/search?type=Issues
189+
[git commit message guidelines]:http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
190+
[Open a Pull Request]:https://help.github.com/articles/using-pull-requests/
191+
[GPLv3 License]:https://en.wikipedia.org/wiki/GNU_General_Public_License
192+
[LICENSE]:https://github.com/major/MySQLTuner-perl/blob/master/LICENSE

INTERNALS.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,10 @@
249249
* Joiner(Try to reach cluster group)
250250
* SYNCED state able to read/write
251251
* wsrep_cluster_conf_id configuration level must be identical in all nodes
252+
* wsrep_slave_thread is between 3 or 4 times number of CPU core.
253+
* gcs.limit should be equal to wsrep_slave_threads * 5
254+
* gcs.fc_factor should be equal to 0.8
255+
* Flow control fraction should be lower than 0.02 (wsrep_flow_control_paused < 0.02)
252256
* wsrep_last_commited committed level must be identical in all nodes
253257
* Look for tables without primary keys
254258
* Look for non InnoDB tables for Galera
@@ -292,7 +296,9 @@
292296
* thread_pool_size between 4 to 8 for MyIsam usage
293297

294298
## MySQLTuner performance schema and sysschema information
295-
299+
* Check that Performance schema is activated for 5.6+ version
300+
* Check that Performance schema is disactivated for 5.5- version
301+
* Check that Sys schema is installed
296302
* sys Schema version
297303
* Top user per connection
298304
* Top user per statement

README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ MySQLTuner-perl
1111

1212
**MySQLTuner** supports in this last version ~300 indicators for MySQL/MariaDB/Percona Server.
1313

14-
**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/), ...
14+
**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/), ...
1515

16-
You can found more details on this indicators
17-
![Indicators description](https://github.com/major/MySQLTuner-perl/blob/master/INTERNALS.md).
16+
You can find more details on these indicators here:
17+
[Indicators description](https://github.com/major/MySQLTuner-perl/blob/master/INTERNALS.md).
1818

1919

2020
![MysqlTuner](https://github.com/major/MySQLTuner-perl/blob/master/mysqltuner.png)
@@ -24,7 +24,7 @@ MySQLTuner needs you:
2424

2525
**MySQLTuner** needs contributors for documentation, code and feedbacks..
2626

27-
* Please join us on issue track at [GitHub tracker](https://github.com/major/MySQLTuner-perl/issues)</a>.
27+
* Please join us on issue track at [GitHub tracker](https://github.com/major/MySQLTuner-perl/issues).
2828
* Contribution guide is available following [MySQLTuner contributing guide](https://github.com/major/MySQLTuner-perl/blob/master/CONTRIBUTING.md)
2929
* Star **MySQLTuner project** at [MySQLTuner Git Hub Project](https://github.com/major/MySQLTuner-perl)
3030

@@ -57,6 +57,14 @@ MySQL in other areas.
5757

5858
**Seriously - please review the FAQ section below.**
5959

60+
61+
Security recommandations
62+
--
63+
64+
Hi directadmin user!
65+
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!
66+
Read link for more details [Issue #289](https://github.com/major/MySQLTuner-perl/issues/289).
67+
6068
What MySQLTuner is checking exactly ?
6169
--
6270
All checks done by **MySQLTuner** are documented in [MySQLTuner Internals](https://github.com/major/MySQLTuner-perl/blob/master/INTERNALS.md) documentation.
@@ -230,7 +238,7 @@ MySQLTuner needs you
230238
--
231239
**MySQLTuner** needs contributors for documentation, code and feedbacks..
232240

233-
* Please join us on issue track at [GitHub tracker](https://github.com/major/MySQLTuner-perl/issues)</a>.
241+
* Please join us on issue track at [GitHub tracker](https://github.com/major/MySQLTuner-perl/issues).
234242
* Contribution guide is avalaible following [MySQLTuner contributing guide](https://github.com/major/MySQLTuner-perl/blob/master/CONTRIBUTING.md)
235243
* Star **MySQLTuner project** at [MySQLTuner Git Hub Project](https://github.com/major/MySQLTuner-perl)
236244

USAGE.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# NAME
22

3-
MySQLTuner 1.6.20 - MySQL High Performance Tuning Script
3+
MySQLTuner 1.7.0 - MySQL High Performance Tuning Script
44

55
# IMPORTANT USAGE GUIDELINES
66

@@ -15,7 +15,9 @@ You must provide the remote server's total memory when connecting to other serve
1515
--socket <socket> Use a different socket for a local connection
1616
--port <port> Port to use for connection (default: 3306)
1717
--user <username> Username to use for authentication
18+
--userenv <envvar> Name of env variable which contains username to use for authentication
1819
--pass <password> Password to use for authentication
20+
--passenv <envvar> Name of env variable which contains password to use for authentication
1921
--mysqladmin <path> Path to a custom mysqladmin executable
2022
--mysqlcmd <path> Path to a custom mysql executable
2123
--defaults-file <path> Path to a custom .my.cnf
@@ -40,7 +42,7 @@ You must provide the remote server's total memory when connecting to other serve
4042
--dbstat Print database information
4143
--idxstat Print index information
4244
--sysstat Print system information
43-
--pfstat Print Performance schema
45+
--pfstat Print Performance schema
4446
--bannedports Ports banned separated by comma(,)
4547
--maxportallowed Number of ports opened allowed on this hosts
4648
--cvefile CVE File for vulnerability checks

build/updateCVElist.pl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,11 @@ sub AUTOLOAD {
6464

6565
foreach my $vers (uniq(@versions)) {
6666
my @nb=split('\.', $vers);
67+
$nb[2]-- if ($line =~ /before/i);
6768
#print $vers."\n".Dumper @nb;
68-
#exit 0;
69-
$f->write_file('file' => '../vulnerabilities.csv', 'content' => "$vers;$nb[0];$nb[1];$nb[2];$line\n", 'mode' => 'append');
69+
#print "$line";
70+
#exit 0 if ($line =~/before/i) ;
71+
$f->write_file('file' => '../vulnerabilities.csv', 'content' => "$nb[0].$nb[1].$nb[2];$nb[0];$nb[1];$nb[2];$line\n", 'mode' => 'append');
7072
}
7173
}
7274
}

build/updateStaff.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
3+
(cd ..
4+
echo "* GENERATING USAGE FILE"
5+
pod2markdown mysqltuner.pl >USAGE.md
6+
echo "* TIDYFY SCRIPT"
7+
perltidy -b mysqltuner.pl
8+
)
9+
echo "* Udate CVE list"
10+
perl updateCVElist.pl
11+
12+
git add ../vulnerabilities.csv ../mysqltuner.pl ./USAGE.md
13+
git commit -m 'Update Vulnerabilities list
14+
Identing mysqltuner
15+
Update Usage information'

0 commit comments

Comments
 (0)