麻烦各位高手给看看到底是为什么错了?import java.sql.*;public class SimpleJDBC {
public static void main(String[] args) throws SQLException, ClassNotFoundException {
// Load the JDBC driver
Class.forName("com.mysql.jdbc.Driver");
System.out.println("Driver loaded"); // Establish a connection
Connection connection = DriverManager.getConnection("jdbc:mysql://localhost/test");
System.out.println("Database connected");
}
}错误是:
Exception in thread "main" java.sql.SQLException:Access denied for user
 ''@'localhost'(using password:NO)
到底是哪里的错误?mysql的?还是connector j的?或是我的配置有问题?