How should I config the my.ini(or my.cnf) file for mysql?
Percona has an extremely awesome wizard for initial server configuration files (I've used it on our own extremely busy production servers). It requires registration, but usage is free.