I want to connect to a MySQL database. While installing MySQL I did not give any password, so in my program I did the same but I am getting error on connection. I am using p
Pass null as password instead of an empty String. That should make it work.
null
con = DriverManager.getConnection("jdbc:mysql://localhost:3306/easylibdb1","root",null);
From what I see right now, you're actually not using the values from the properties file.