For MySQL configuration help, take a look at mysqltuner. While it won't guide you to the perfect config it will at least give you some basic recommendations for things to change, especially if you're running the stock MySQL config.