====== MySQL Connection ======

===== C =====

===== C++ =====

===== PHP ===== <\/code>

===== Java ===== //...necessary import packages import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; //helpful but not used in this example

//...code within a class Class.forName("com.mysql.jdbc.Driver").newInstance(); Connection con = DriverManager.getConnection("jdbc:mysql:///test","root", "secret"); //...preform actions with the open database connection con.close(); <\/code>

===== Perl =====

===== Python =====