I am trying to connect to mysql database. I am using MySQL workbench. These are my codes:
Class.forName("com.mysql.jdbc.Driver");
con =DriverManager.getConnection("jdbc:mysql://localhost/try?" +"user=jenny&password=perez");
PreparedStatement ps=con.prepareStatement("SELECT * FROM address");
ResultSet myRS=ps.executeQuery();
What's wrong with my codes?