I am using a Mac OS X Snow Leopard Apple computer.
I installed MySQL on my machine using instructions mentioned here. Everything works great. However I have two questions.
-
Where is
my.cnffile? I searched the whole file system and result is empty. Is it possible that there is nomy.cnfand MySQL works with default values. If yes then probably I should createmy.cnfat/etc/mysql. Is that right? -
How do I restart the MySQL server ? I know it gets started when I restart my machine. Here is what plist looks like.
mysqld_safedoes not let me restart server.KeepAlive
Label
com.mysql.mysqld
Program
/usr/local/mysql/bin/mysqld_safe
RunAtLoadUserName
mysql
WorkingDirectory
/usr/local/mysql
From the example my.cnf that comes with mysql:
On my OS X 10.4 instance, my.cnf is at /etc/my.cnf.
To restart mysql, use mysqladmin to shut it down and then start it up again with mysqld_safe: