How do you use more than a single LIKE in a single SHOW VARIABLES query in MySQL?
show variables where Variable_name like 'tmp%' or Variable_name like 'max%';
http://dev.mysql.com/doc/refman/5.0/en/show-variables.html
If you are using MySQL 5.1+, you can query the INFORMATION_SCHEMA
SELECT * FROM information_schema.global_variables
WHERE variable_name LIKE 'tmp%' or variable_name like 'max%';
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With