博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
更改MySQL日志错误级别记录非法登陆(Access denied)
阅读量:6911 次
发布时间:2019-06-27

本文共 1248 字,大约阅读时间需要 4 分钟。

按照MySQL官方文档可将my.ini(Microsoft Windows)或my.cnf(UNIX/Linux)中mysqld段的log-warnings设置为1以上的数字,如2,重启mysqld生效。

  • , -W [level]

    Command-Line Format:--log-warnings[=#] 或-W [#]

    Option-File Format:log-warnings[=#]

    System Variable Name:

       Type:numeric

       Default:1

       32-bit Range:0 .. 4294967295

       64-bit Range:0 .. 18446744073709547520

Print out warnings such as Aborted connection... to the error log. This option is enabled (1) by default. To disable it, use . Specifying the option without a level value increments the current value by 1. Enabling this option by setting it greater than 0 is recommended, for example, if you use replication (you get more information about what is happening, such as messages about network failures and reconnections). If the value is greater than 1, aborted connections are written to the error log. See .

If a slave server was started with enabled, the slave prints messages to the error log to provide information about its status, such as the binary log and relay log coordinates where it starts its job, when it is switching to another relay log, when it reconnects after a disconnect, and so forth. As of MySQL 5.1.38, the server logs messages about statements that are unsafe for statement-based logging if is greater than 0.

参考:

转载地址:http://psncl.baihongyu.com/

你可能感兴趣的文章
[BZOJ3751/NOIP2014]解方程
查看>>
【Java例题】3.5 级数之和
查看>>
silverlight多国语言研究
查看>>
开发--省级三联动,简单的代码,但是功能不差
查看>>
赋值法
查看>>
单词积累(Unity)
查看>>
P4769 [NOI2018]冒泡排序(dp)
查看>>
[BZOJ5407]girls
查看>>
API接口 Http和Socket 优劣比较 使用场景选择
查看>>
js 邮政编码验证
查看>>
iOS开发之窥探UICollectionViewController(二) --详解CollectionView各种回调
查看>>
HDU 4532 湫秋系列故事——安排座位(组合)
查看>>
BZOJ 3672 [Noi2014]购票 (熟练剖分+凸壳维护)
查看>>
LINQ扩展实现去重复
查看>>
Linq to entity优化---MSDN
查看>>
多种方式实现依赖注入
查看>>
20150625_Andriod_01_ListView1_条目显示
查看>>
jmeter线程组之间传递参数
查看>>
monkey测试===Monkey测试策略(系列二)转
查看>>
安全测试===如何查看浏览器保存的密码
查看>>