ylsunyuan技术论坛中心

 找回密码
 注册(请使用中文注册)
搜索
热搜: 活动 交友 discuz
查看: 808|回复: 0
打印 上一主题 下一主题

mysql 日志

[复制链接]

124

主题

127

帖子

619

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
619
跳转到指定楼层
楼主
发表于 2017-2-9 22:08:54 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
一、查看mysql 数据库日志文件:
  1. show variables like 'general_log_file';
复制代码
  1. mysql> show variables like 'general_log_file';
  2. +------------------+--------------------------------+
  3. | Variable_name    | Value                          |
  4. +------------------+--------------------------------+
  5. | general_log_file | /mnt/DataBase/iZ28na4xi3rZ.log |
  6. +------------------+--------------------------------+
  7. 1 row in set (0.00 sec)
复制代码
所在位置:
  1. mysql> show variables like 'log_%';
  2. +---------------------------------+------------------------------+
  3. | Variable_name                   | Value                        |
  4. +---------------------------------+------------------------------+
  5. | log_bin                         | ON                           |
  6. | log_bin_trust_function_creators | OFF                          |
  7. | log_error                       | /alidata/log/mysql/error.log |
  8. | log_output                      | FILE                         |
  9. | log_queries_not_using_indexes   | OFF                          |
  10. | log_slave_updates               | OFF                          |
  11. | log_slow_queries                | OFF                          |
  12. | log_warnings                    | 1                            |
  13. +---------------------------------+------------------------------+
  14. 8 rows in set (0.00 sec)
复制代码



回复

使用道具 举报

本版积分规则

QQ|Archiver|手机版|小黑屋|ylsunyuan技术论坛 ( 桂ICP备14005218号-1

GMT+8, 2024-4-19 15:51 , Processed in 0.062901 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表