Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am getting following error:

error: Found option without preceding group in config file: /etc/my.cnf at line: 1
Fatal error in defaults handling. Program aborted

here is my /etc/my.cnf file:

[root@host backup]#cat /etc/my.cnf
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).


share|improve this question
Seems you are missing [mysqld] clausse. – val0x00ff Jan 22 '13 at 13:16
Thanks for prompt response ...!!Do I need to add [mysqld] as a first line into /etc/my.cnf? – meMangesh Jan 22 '13 at 13:20
Is not necessary though as long as it's there and contains the correct directives that belong to the [mysqld] clausse. – val0x00ff Jan 22 '13 at 13:22
up vote 8 down vote accepted

Add [mysqld] as a first line of your my.cnf-file.

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.