Stored procedures and functions are implemented beginning with MySQL 5.0. See Chapter 19, Stored Procedures and Functions.
Basic trigger functionality is implemented beginning with MySQL 5.0.2, with further development planned for MySQL 5.1. See Chapter 20, Triggers.