How can I connect to a MySQL database using Java?