MySQL - How to setup my.cnf

How do I setup my.cnf for mysql if I don't already have one in /etc.
I want to set some variables such as:
wait_timeout
max_connections
max_user_connections
I created a "my.cnf" file and uploaded it to /etc and it killed my mysql.
It wasn't very easy to get mysql working again so trial and error isn't an option.
I am using MySQL 3.23.37 cobalt package version on a ra4i.

If there is another way of setting those variables let me know.

 

 

 

 

Top