Commit graph

1288 commits

Author SHA1 Message Date
Jean-Marie Renouard
aac1ab2b4d
Merge pull request #514 from grooverdan/mdb10.4-secure-users
secure users MariaDB-10.4+ / MySQL auth socket
2020-12-08 08:30:23 +01:00
Jean-Marie Renouard
643e5e4e98
Merge pull request #515 from grooverdan/delanonymous
DROP USER to delete anonymous accounts
2020-12-08 08:30:04 +01:00
Jean-Marie Renouard
b8effe6410
Merge pull request #516 from grooverdan/supported_versions
MariaDB-10.1 EOL, MariaDB-10.5 is GA
2020-12-08 08:29:44 +01:00
Daniel Black
6f966dee45 MariaDB-10.1 EOL, MariaDB-10.5 is GA 2020-12-08 15:25:59 +11:00
Daniel Black
1bb30f508e DROP USER to delete anonymous accounts
DROP USER has existed for a very long time.

Use the QUOTE sql function to ensure accounts are correctly quoted
and this helps the delete recommendation.
2020-12-08 14:37:26 +11:00
Daniel Black
79a4403c9c MySQL-5.7/8.0+ auth_socket is safe
MySQL has auth_socket as its plugin compared to unix_socket on MariaDB
so accept that as a valid reason for having no authentication.

MySQL [(none)]> show create user dan@localhost;
+-----------------------------------------------------------------------------------------------------------------+
| CREATE USER for dan@localhost                                                                                   |
+-----------------------------------------------------------------------------------------------------------------+
| CREATE USER 'dan'@'localhost' IDENTIFIED WITH 'auth_socket' REQUIRE NONE PASSWORD EXPIRE DEFAULT ACCOUNT UNLOCK |
+-----------------------------------------------------------------------------------------------------------------+
1 row in set (0.000 sec)

MySQL [(none)]> select user,host,plugin from mysql.user;
+---------------+-----------+-----------------------+
| user          | host      | plugin                |
+---------------+-----------+-----------------------+
| root          | localhost | mysql_native_password |
| mysql.session | localhost | mysql_native_password |
| mysql.sys     | localhost | mysql_native_password |
| dan           | localhost | auth_socket           |
| expiretest    | %         | mysql_native_password |
| expiretest    | localhost | mysql_native_password |
+---------------+-----------+-----------------------+
6 rows in set (0.001 sec)

MySQL [(none)]> select version();
+-----------+
| version() |
+-----------+
| 5.7.31    |
+-----------+
2020-12-08 14:18:03 +11:00
Daniel Black
0eef9260a8 mariadb-10.4+ empty passwords
MariaDB-10.4 migrated their authentication to a global_priv table in JSON
format. Also locked user accounts where added. By default the mariadb.sys
is a locked user without a password and there as the owner of the mysql.user
view. As its hazardous for a user to modify this we exclude locked accounts
but still search for mysql_native_password plugin without authentication.

We use versioned comments to process all other versions. The 5.5+ MySQL
version comment is also read by MariaDB (ref: https://mariadb.com/kb/en/comment-syntax/
enabling the processing of plugins on other version that have plugins.

While this branch doesn't yet apply to MySQL-8.0 yet, we add support
for the locked user accounts in MySQL-8.0+ in a versioned comment
(not read by MariaDB).
2020-12-08 14:00:39 +11:00
Jean-Marie Renouard
de4b145e96 Remove innodb_buffer_pool_instances recommendations for MariaDB #512
Remove innodb_buffer_pool_instances recommendations for MariaDB #512
2020-11-16 20:22:24 +01:00
Jean-Marie Renouard
b5718d0e2f Merge branch 'master' of https://github.com/major/MySQLTuner-perl 2020-11-05 17:29:32 +01:00
Jean-Marie Renouard
cff819d46f Change version number 2020-11-05 17:29:26 +01:00
Jean-Marie Renouard
026ed6db4f Update README.md 2020-10-08 11:48:00 +02:00
Jean-Marie Renouard
a3f72fec6c
Update USAGE.md 2020-09-15 15:26:15 +02:00
Jean-Marie Renouard
d25f8a9230
Merge pull request #507 from RULCSoft/master
Remove references to the domain mysqltuner.com. #501
2020-09-15 15:24:17 +02:00
Jorge Vallecillo
d2a8f0b60a Remove references to the domain mysqltuner.com. #501 2020-09-03 10:17:58 -06:00
Jean-Marie Renouard
b6f8f9f9a3 Merge branch 'master' of https://github.com/major/MySQLTuner-perl 2020-05-04 11:02:49 +02:00
Jean-Marie Renouard
00ce968c6a Removing windows end of lines 2020-05-04 11:01:34 +02:00
Jean-Marie Renouard
6038bd7749 Update mysqltuner.pl
Back to MYsqltuner 1.7.19
2020-05-03 23:12:19 +02:00
Jean-Marie Renouard
9236ec0f80 Update mysqltuner.pl
Fix error
2020-05-03 23:07:42 +02:00
Jean-Marie RENOUARD
1e8b32a253 merged 2020-05-02 16:01:37 +02:00
root
12ae60c6f2 local commit 2020-05-02 15:56:26 +02:00
Jean-Marie Renouard
094f16f67c
Merge pull request #473 from unreturned/fix_471
Possible fix for #471
2020-01-23 18:23:19 +01:00
Kovalkov Dmitrii
e7609d7a91 And for debug line ignore these lines 2020-01-23 16:37:45 +03:00
Kovalkov Dmitrii
dc4aa248c8 Ignore
200122 12:09:15 mysqld_safe Logging to '/var/log/mysql/error.log'.
when we count errors in log
2020-01-23 11:24:56 +03:00
Jean-Marie Renouard
b5ffe58506
Merge pull request #470 from mrqwer88/README.ru_update
Update README.ru.md
2020-01-20 19:07:52 +01:00
Sergei A Mamonov
d3ab6db641 Update README.ru.md 2020-01-20 21:04:32 +03:00
Jean-Marie Renouard
7965211fa0
Merge pull request #466 from Ruzgfpegk/bugfix/mariadb-sys-update
Suggest using mariadb-sys from FromDual in script
2020-01-09 22:16:39 +01:00
Jean-Marie Renouard
8f34a00f18
Merge pull request #468 from Ruzgfpegk/bugfix/myisam-table_cache-doclink
Updates link to MyISAM table_cache scalability doc
2020-01-09 22:16:15 +01:00
Ruzgfpegk
8ffd81475a
Updates link to MyISAM table_cache scalability doc
Fixes #465 .
2020-01-09 15:53:56 +09:00
Ruzgfpegk
3555142ead
Suggest using mariadb-sys from FromDual in script
Follows #443 and #444.
2020-01-09 15:04:04 +09:00
Jean-Marie Renouard
80920ad061
Merge pull request #464 from jfcoz/max_allowed_packet
Include max_allowed_packet in thread memory size
2020-01-08 20:48:52 +01:00
jfcoz
c5765f0213 Include max_allowed_packet in thread memory size
Fix https://github.com/major/MySQLTuner-perl/issues/378
Fix https://github.com/major/MySQLTuner-perl/issues/456
2019-12-12 13:31:23 +01:00
Jean-Marie Renouard
345bf1ae24 Issue Typo in commit 6f6130b (ymsql => mysql) (#459) 2019-10-17 17:39:45 +02:00
Jean-Marie Renouard
216a0a9889 Update .travis.yml 2019-10-16 20:22:50 +02:00
Jean-Marie Renouard
95ed36c1ee Update .travis.yml 2019-10-16 20:22:03 +02:00
Jean-Marie Renouard
f6fae6713d Update .travis.yml 2019-10-16 20:14:33 +02:00
Jean-Marie Renouard
e1891570e3 Validate YAML format 2019-10-16 20:11:59 +02:00
Jean-Marie Renouard
a1c1624b81 Update .travis.yml 2019-10-16 20:02:43 +02:00
Jean-Marie Renouard
084591fdc7 Update .travis.yml
removing perlcritic for some error
2019-10-16 19:53:15 +02:00
Jean-Marie Renouard
365dd57128
Merge pull request #457 from maitrepylos/henallux
SCALAR ref while strict refs
2019-10-04 13:26:03 +02:00
155da8c074 SCALAR ref while strict refs 2019-10-04 12:10:16 +02:00
Jean-Marie Renouard
cb9308ac2a Update README.md 2019-10-03 23:58:06 +02:00
Jean-Marie Renouard
6f6130b12b Missing password is not recognized #412 2019-10-03 23:15:31 +02:00
Jean-Marie Renouard
851cd817de Update version command #428 2019-10-03 22:33:22 +02:00
Jean-Marie Renouard
66f2ee40be About innodb_log_file_size changing recommendation #408 2019-10-03 22:10:18 +02:00
Jean-Marie Renouard
792b46b03c About innodb_log_file_size changing recommendation #408 2019-10-03 22:06:51 +02:00
Jean-Marie Renouard
6aa887d5a5 Use of uninitialized value $engine in concatenation (.) or string #350 2019-10-03 21:52:30 +02:00
Jean-Marie Renouard
143b80b3a6 Add recommendation on table_definition_cache #433 2019-10-03 21:29:03 +02:00
Jean-Marie Renouard
a421f73e26 Add note about join_buffer_size #434 2019-10-03 21:04:12 +02:00
Jean-Marie Renouard
3e30c984cf Adding clear all mysql containers 2019-10-02 20:37:54 +00:00
Jean-Marie Renouard
7050e47a8c Removing misplaced file 2019-10-02 19:01:51 +00:00