# 'yum install mysql' will also provide /etc/my.cnf :
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
# Disabling symbolic-links is recommended to prevent assorted security risks;
# to do so, uncomment this line:
.. And I guess you can edit "datadir=" to any location.