Can any one give me code for connecting mysql database? Wich driver we can use for connecting database. pls give me complete code.. Class.forName("???"); Connection con =DriverManage.getConnection("???","??","??"); what i have to write in place of ???
the first localhost is your mysql database. Can be any ip number 3306 is the mysql port. Often 3306 used the first test is the database name. second test is the username to the database third test is the password