Hibernate

  Others

Email

Capture1.PNG

what might the my mistake……

im getting MySQL connection exception while running hibernate code

Spread the Code

1
Leave a Reply

avatar
1 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
anil naik Recent comment authors

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  Subscribe  
newest oldest most voted
Notify of
anil naik
Member

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.*;
import java.sql.SQLException;
import javax.sql.*;

public class dbconect {

static Connection conncetion = null;
static String databaseName = “”;
static String url =”jdbc:mysql://localhost:3306/” +databaseName;
static String username =”root”;
static String password =”root