abyinsydney
Programmer
greetings fellow citizens
I'm trying to connect to the database thro jsp to mysql databse with following syntax
Class.forName("org.gjt.mm.mysql.Driver");
conn = DriverManager.getConnection
("jdbc:mysql://168.217.20.68/archiving username="tasol" password="tasol")
Statement stat=conn.createStatement();
ResultSet rc = stat.executeQuery("select * from user_login ");
It is giving me an erro i reckon the error is in the conn statement
what is the correct syntax for username and password to connect to the data bse
Any suggestions would be appreciated
aby
I'm trying to connect to the database thro jsp to mysql databse with following syntax
Class.forName("org.gjt.mm.mysql.Driver");
conn = DriverManager.getConnection
("jdbc:mysql://168.217.20.68/archiving username="tasol" password="tasol")
Statement stat=conn.createStatement();
ResultSet rc = stat.executeQuery("select * from user_login ");
It is giving me an erro i reckon the error is in the conn statement
what is the correct syntax for username and password to connect to the data bse
Any suggestions would be appreciated
aby