首頁 >資料庫 >mysql教程 >How to Enable MySQL Query Monitoring_MySQL

How to Enable MySQL Query Monitoring_MySQL

WBOY
WBOY原創
2016-06-01 13:14:391110瀏覽

Related MicroZone Resources

INFOGRAPHIC: The Future of the Database

What We Offer: Clustrix Features

Clustrix Whitepapers

Proven in Production: Clustrix Case Studies

Like this piece? Share it with your friends:

Do you need to monitor any SQL statements passing through your MySQL server? You would need to turn on the server logging. Edit your my.cnf file and add these:
log-output=FILE
general-log=1
general_log_file=mysql-general.log

Published at DZone with permission ofZemian Deng, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Tags:
  • MySQL
  • Tips and Tricks
  • SQL
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn