mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-27 16:12:04 +00:00
PT-2102_pt-mysql-summary should support include in config files (#601)
* PT-2102 pt-mysql-summary should support include* in config file includedir directories are now printed in the order of which they appear in root my.cnf * PT-2102 pt-mysql-summary should support include* in config file !include was not supported. Changed 'for' to 'while' to properly test for '!includedir' and '!include'. Supports extra spaces between files and !include. * PT-2102 pt-mysql-summary should support include* in config file Updates modules, added test case for !include and !includedir Changed find_my_cnf function to make it try every regexes and only returned when it find one * Update pt-mysql-summary Identation fix as suggested by review * Update collect_mysql_info.sh Identation as suggested by review * PT-2102 pt-mysql-summary should support include* in config file Fix formatting after review --------- Co-authored-by: Sveta Smirnova <svetasmirnova@users.noreply.github.com>
This commit is contained in:

committed by
GitHub

parent
bc370d2c1d
commit
7ecdae6ef6
43
t/pt-mysql-summary/samples/my.cnf-002.txt
Normal file
43
t/pt-mysql-summary/samples/my.cnf-002.txt
Normal file
@@ -0,0 +1,43 @@
|
||||
[mysqld]
|
||||
####datadir=/var/lib/mysql
|
||||
datadir=/mnt/data/mysql
|
||||
####socket=/var/lib/mysql/mysql.sock
|
||||
socket=/mnt/data/mysql/mysql.sock
|
||||
# Default to using old password format for compatibility with mysql 3.x
|
||||
# clients (those using the mysqlclient10 compatibility package).
|
||||
old_passwords=1
|
||||
|
||||
ssl-key = /opt/mysql.pdns/.cert/server-key.pem
|
||||
ssl-cert = /opt/mysql.pdns/.cert/server-cert.pem
|
||||
ssl-ca = /opt/mysql.pdns/.cert/ca-cert.pem
|
||||
|
||||
innodb_buffer_pool_size = 16M
|
||||
innodb_flush_method = O_DIRECT
|
||||
## THIS SETTING REQUIRE SPECIAL SHUTDOWN PROCEDURE AND MOVING LOGFILE. DO NOT SET UNLESS YOU UNDERSTAND WHAT YOU ARE DOING!
|
||||
innodb_log_file_size = 64M
|
||||
innodb_log_buffer_size = 1M
|
||||
innodb_flush_log_at_trx_commit = 2
|
||||
innodb_file_per_table = 1
|
||||
|
||||
ssl = 1
|
||||
|
||||
server-id = 1
|
||||
log-bin=sl1-bin
|
||||
|
||||
wsrep_provider_options = "gcache.size=64M;base_host=10.1.2.102; base_port=4567; cert.log_conflicts=no;etc=etc;"
|
||||
|
||||
[mysql.server]
|
||||
user=mysql
|
||||
####basedir=/var/lib
|
||||
basedir=/mnt/data
|
||||
|
||||
[mysqld_safe]
|
||||
log-error=/var/log/mysqld.log
|
||||
pid-file=/var/run/mysqld/mysqld.pid
|
||||
|
||||
[mysql]
|
||||
|
||||
|
||||
[xtrabackup]
|
||||
target-dir=/data/backup
|
||||
|
Reference in New Issue
Block a user