MySQL Log configuration

Source: Internet
Author: User

#################### #shijl: 20150410:my.ini#######################

#记录所有sql语句

Log=e:/phpstudy/mysql/log/query.log


#记录数据库启动关闭信息, and error messages that are generated during the run

Log-error=e:/phpstudy/mysql/log/error.log


# All SQL statements except the SELECT statement are logged into the log and can be used to recover data files

Log-bin=e:/phpstudy/mysql/log/log


#记录查询慢的sql语句

Log-slow-queries=e:/phpstudy/mysql/log/slow.log


#慢查询时间

Long_query_time=5

###############################################################


This article is from the "Half City" blog, please be sure to keep this source http://vabc1314.blog.51cto.com/2164199/1630782

MySQL Log configuration

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.