+ chapter 7-9 of mysql 5.1 manual