MySQL Open general log method after MySQL opens the general log, all query statements can be read in the general log file in a readable manner, but the general log file will be very large, so the default is closed. Sometimes in order to check the wrong reasons, or need to temporarily open the general log. www.2cto.com [email protected] (none) >show global variables like "%genera%"; +------------------+------------------ ------------+| variable_name | Value |+------------------+------------------------------+| General_log | OFF | | General_log_file | /data1/mysql9999/etch171.log |+------------------+------------------------------+2 rows in Set (0.00 sec) [Email Protected] (None) >set global general_log=on; Query OK, 0 rows affected (0.02 sec) [email protected] (none) >set global general_log=off; Query OK, 0 rows Affected (0.00 sec)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.