mysqlconnection_java How to connect in MySQL Database using Java NOTE: You need the mysql library (https://dev.mysql.com/downloads/connector/j) to get this work. After that add the mysql library to reference classpath using your editor.