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.

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

1 Answer 1

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

[mysql]
default-character-set=utf8

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

 
discard

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.