Mysql运行时常见错误及方法 1. 使用net start mysql 开启Mysql服务时发生系统错误5,拒绝访问 解决方法:右键选择cmd属性设置在管理员模式下运行 2. 出错提示为Public Key Retrieval is not allowed com.mysql.cj.jdbc.exceptions. SQLError.createSQLException (SQLError.java:110) 解决方法:在连接数据库的url中,加上allowPublicKeyRetrieval=true