Hello,
First see via SSH : mysqladmin extended-status
How much RAM you have ?
You can start with some sample files from /usr/share/mysql/ :
my-huge.cnf
my-large.cnf
my-medium.cnf
my-small.cnf
Depends on your requirements you can fine tune it.
Thanks.