… to see the /etc/my.cnf file nicely formatted, and with comments stripped. This Perl one-liner will pretty-print the file: perl -ne ‘m/^([^#][^\s=]+)\s*(=.*|)/ && printf(“%-35s%s\n”, $1, $2)’ /etc/my.cnf [client] port = 3306…
May 25, 2012
Percona's MySQL & InnoDB performance and scalability blog

… to see the /etc/my.cnf file nicely formatted, and with comments stripped. This Perl one-liner will pretty-print the file: perl -ne ‘m/^([^#][^\s=]+)\s*(=.*|)/ && printf(“%-35s%s\n”, $1, $2)’ /etc/my.cnf [client] port = 3306…
Percona is the oldest and largest independent MySQL support and consulting company, with a global 24×7 staff of over 50 people serving more than 1000 customers in 50+ countries since 2006.
We offer consulting, training, support, and custom development services.
We also create Percona Server, XtraDB and XtraBackup.
Percona's open-source software leads the industry in performance and features.
Percona offers professional services for MySQL users
Copyright © Percona Inc. • Contact Us • MySQL and InnoDB are trademarks of Oracle Corp.