javascript code for mysql database connection

358 views

Published on

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
358
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

javascript code for mysql database connection

  1. 1. <%@ page import="java.sql.*"%> <%! Connection con; Statement stat; ResultSetrs; ResultSetMetaData md; %> <% Class.forName("com.mysql.jdbc.Driver"); con=DriverManager.getConnection("jdbc:mysql://localhost:3306/databasename", "username", "password"); stat=con.createStatement(); %>

×