My code for Database access is :
String driver = “com.mysql.jdbc.Driver”;
String url = “jdbc:mysql://localhost:3306/Northwind”;
String username = “”;
String password = “ghazala”;
But having error :
String driver = “com.mysql.jdbc.Driver”;
String url = “jdbc:mysql://localhost:3306/Northwind”;
String username = “”; // No username/password required
String password = “ghazala”; // for desktop access to MS Access.
showEmployeeTable(driver, url, username, password);
” Error with connection: access denied for user ‘ ‘@’ localhost’