In mysql
/mariadb
, I can show variables using SHOW VARIABLES LIKE 'pattern'
, is it possible to show multiple variables at one time:
SHOW VARIABLES like 'port';
SHOW VARIABLES like 'sql_mode';
Here is another alternative, with less typing and more compact display of results by using '\G instead of ';' as the query terminator:
SHOW VARIABLES
WHERE Variable_Name IN ('port', 'sql_mode')\G
Use where
SHOW VARIABLES WHERE
Variable_Name LIKE 'port' OR
Variable_Name LIKE 'sql_mode'
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