com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user ''@'localhost' to database 'imooc'; 每次都连接数据库出现这个错误,求解答
问题解决了,connection = DriverManager.getConnection(URL,USERNAME,PASSWORD)中,只写了URL就会导致这个错误