Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

Ubuntu 10.10 server When I run the following command: mysql

It tells me: mysql: option '--default-character-set' requires an argument

I've updated the my.cnf file to set the default character set, so I am perplexed. What am I missing?

I've got that line exactly... but something strange is that I have a file at: /etc/init/mysql.conf that has

/usr/bin/mysqladmin --defaults-file="${HOME}"/debian.cnf ping && {
        exec "${HOME}"/debian-start
share|improve this question
up vote 0 down vote accepted

Exactly what does that line in your my.cnf look like, and what version of MySQL are you running? On my installation, it says


as specified in the manual.

share|improve this answer
I updated the question to point out that I think it's the default init script that might be the problem. Does yours have this line in it? – NinjaCat Jan 20 '11 at 16:07

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.