Hi all,
I connect to MySQL server using just
C:\mysql\bin\mysql <enter>
In the
java code I have given this,
String url = "jdbc:mysql://localhost:3306/myfirstdatabase/nash";
Where "myfirstdatabase" is the database and "nash" is the table name.
Is this the correct way to do and to connect to the database I give the following
Connection con = DriverManager.getConnection(url);
Is this the way.
After this,I get this error,
/*
java.lang.NullPointerException
at DatabaseConnection$1.actionPerformed(DatabaseConnection.java:84)
*/
where DatabaseConnection.java is the file name.
Kindly guide me in the correct direction
Thanks
nash