参看以下两篇文章
http://www.dedecms.com/knowledge/data-base/mysql/2012/0820/9172.html
http://dbanotes.net/database/database_sharding-2.html