To learn to optimize your mysql check this link:
http://www.besthostingforums.com/13-...ght=mysqltuner