See
JavaRanch FAQ: Accessing File Formats To work with MySQL, you need a
JDBC driver for MySQL. If you don't know how to use JDBC, see
Sun's tutorial.
Your question is quite vague and general. If you explain in more detail with what part you have difficulties, it will be easier to give you a useful answer.
[ October 23, 2008: Message edited by: Jesper Young ]