The MySQL/Ruby module provides access to MySQL databases using Ruby through libmysqlclient.
libmysqlclient
For information on installing the module, and the functions exposed, see MySQL/Ruby.