Linux:Red Hat Enterprise Linux 5.0
rpm -ivh MySQL-server-community-5.1.39-0.rhel5.i386.rpm
rpm -ivh MySQL-client-community-5.1.39-0.rhel5.i386.rpm
Where is my.cnf?
You should find the my-large.cnf first.
The my-large.cnf is in /usr/share/mysql/. You should copy the my-large.cnf to /etc/my.cnf.
You can modify my.cnf like this:
[mysql]
default_character_set=utf8
[mysqld]
default_character_set=utf8
If default_character_set not defined, you should add this code.