Bug #64785 cannot start server after add "--log-warnings=2" in my.ini
Submitted: 28 Mar 2012 7:51 Modified: 28 Mar 2012 8:37
Reporter: zhou zhijian Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server: Logging Severity:S3 (Non-critical)
Version:5.5.13 OS:Windows
Assigned to: CPU Architecture:Any
Tags: log warning

[28 Mar 2012 7:51] zhou zhijian
Description:
i want see mysql server running warn log,so i add a line
--log-warnings=2
in my.ini
when i restart server, it report start failure.

How to repeat:
here id my.ini:

[client]

port=3306

[mysql]

default-character-set=latin1

[mysqld]

port=3306
--log-warnings=2

basedir="C:/Program Files/MySQL/MySQL Server 5.5/"

datadir="C:/Documents and Settings/All Users/Application Data/MySQL/MySQL Server 5.5/Data/"

character-set-server=latin1

default-storage-engine=INNODB

sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

max_connections=100

query_cache_size=0

table_cache=256

tmp_table_size=17M

thread_cache_size=8

myisam_max_sort_file_size=100G

myisam_sort_buffer_size=34M

key_buffer_size=25M

read_buffer_size=64K
read_rnd_buffer_size=256K

sort_buffer_size=256K

innodb_additional_mem_pool_size=2M

innodb_flush_log_at_trx_commit=1

innodb_log_buffer_size=1M

innodb_buffer_pool_size=47M

innodb_log_file_size=24M

innodb_thread_concurrency=8
[28 Mar 2012 8:37] Valeriy Kravchuk
--log-warnings=2 is for command line. You should use

log_warnings=2

in my.ini instead. Read http://dev.mysql.com/doc/refman/5.5/en/server-options.html#option_mysqld_log-warnings.