我正在做一个项目,我一直在尝试使用MySQL而不是SQLite。因此,我下载了MySQL并尝试用mysql_secure_installation设置根密码,但是当我提交这两个密码时,会出现以下错误:
... Failed!Error: SET PASSWORD has no significance for user 'root'@'localhost' as the authentication method used我一直试图在mysql中设置密码,方法是:
使用下面的代码Connection con = DriverManager.getConnection(url, "root", "");
我得到了以下异常。java.sql.SQLException: Access denied for user 'root'@'localhost' (using pa