Improved support for the cymysql driver, supporting version 0.6.5,
courtesy Hajime Nakagami.