Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I would like to try MySQL 5.6 on my machine, but I cannot start it. I always get an error :

[ERROR] /usr/local/mysql-5.6.5-m8-osx10.6-x86/bin/mysqld: ambiguous option '--log=/var/log/mysqld.log' (log-bin, log_slave_updates)



I try to set "log" and "log-bin" paramether in my.cnf file and also as start parameters for mysqld, but with no luck. Any idea what I can do? Thank you.

My environment:

OS X 10.6.8
mysql-5.6.5-m8-osx10.6-x86 (not _x64 version)

Note: I'm also running Mysql 5.5 on this machine (different port and socket). I also try to stop this instance but I get the some error.

Thank you for help but I'm still gettings the some error. I have now change file my.cnf :

user        = myusername
port        = 3307
socket      = /tmp/mysql_56.sock
key_buffer_size = 256M
group_concat_max_len = 50240
max_allowed_packet = 16777216
table_open_cache = 256
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size= 16M
thread_concurrency = 8

And I start MySQL with start.sh script. Content :

cd /usr/local/mysql-5.6.5-m8-osx10.6-x86
./bin/mysqld_safe --basedir=/usr/local/mysql-5.6.5-m8-osx10.6-x86
cd $HOME

But I'm still getting the some error :

120611 16:02:02 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql-5.6.5-m8-osx10.6-x86/data
120611 16:02:02 [ERROR] /usr/local/mysql-5.6.5-m8-osx10.6-x86/bin/mysqld: ambiguous option '--log=/var/log/mysqld.log' (log-bin, log_slave_updates)
120611 16:02:02 [ERROR] Aborting

120611 16:02:02 [Note] Binlog end
120611 16:02:02 mysqld_safe mysqld from pid file /usr/local/mysql-5.6.5-m8-osx10.6-x86/mysql.pid ended

This si very strange because I'did set this variable '--log=/var/log/mysqld.log' anywhere.

share|improve this question

migrated from stackoverflow.com Jun 10 '12 at 10:14

This question came from our site for professional and enthusiast programmers.

I think this question may be better suited to Server Fault. –  eggyal Jun 10 '12 at 8:07
If you can format questions a little when asking on SE sites, that'd be much appreciated - use the 'code' button in the editor, rather than <br/> tags :-). –  halfer Jun 10 '12 at 9:56

2 Answers 2

up vote 0 down vote accepted

Make sure your start.sh is using the correct my.cnf with --defaults-file=/path/to/my.cnf

You may also have another my.cnf automatically being included (usually /etc/mysql/my.cnf) that could be adding/overriding options in your base config file.

share|improve this answer
Hi! Yes, this was my problem - another my.cnf in /etc/my.cnf. I remove this file and now it starts. Thank you. –  MaticPetek Jun 11 '12 at 18:07

The "ambiguous option" error message should have pointed you in the right direction... The --log option has been long deprecated, use the --general-log option instead

Please post your other errors messages so that we can help you with them.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.