美文网首页PHP实战PHP经验分享PHP架构
MySQL开启general_log 跟踪数据执行过程

MySQL开启general_log 跟踪数据执行过程

作者: E狼 | 来源:发表于2018-05-10 14:33 被阅读3次

1. 设置general log保存路径

2. 注意在Linux中只能设置到 /tmp 或 /var 文件夹下,设置其他路径出错

3. 需要root用户才有访问此文件的权限

    mysql>set global general_log_file='/tmp/general.log';  

4.开启general log模式

    mysql>set global general_log=on; 

5.关闭general log模式

1.  mysql>set global general_log=off;  

相关文章

网友评论

    本文标题:MySQL开启general_log 跟踪数据执行过程

    本文链接:https://www.haomeiwen.com/subject/cyizrftx.html