+ chapter 10-12 of mysql 5.1 manual