In the example my.cnf that comes with mysql:
# You can copy this file to # /etc/my.cnf to set global options, # mysql-data-dir/my.cnf to set server-specific options (in this # installation this directory is /usr/local/mysql/data) or # ~/.my.cnf to set user-specific options.
On my OS X 10.4 instance, my.cnf is located in /etc/my.cnf.
To restart mysql, use mysqladmin to close it, and then start it again with mysqld_safe:
/usr/local/mysql/bin/mysqladmin -uroot -p shutdown sudo /usr/local/mysql/bin/mysqld_safe &
Keith randall
source share