Hi,
You can refer SJSAS Developer, Administration guides for database access.
Chapter 15 Using the JDBC API for Database Access
http://docs.sun.com/app/docs/doc/819-3659/6n5s6m5bi?a=view
To configure mysql :
Configurations for Specific JDBC Drivers
http://docs.sun.com/app/docs/doc/819-3658/6n5s5nklk?a=view
Thanks,
-Jagadish