weikaixxxxxx 2020-05-30
错误原因:
mysql:jdbc://localhost:3306/test
jdbc:mysql://localhost:3306/test
错误原因:
jdbc:mysql://192.168.3.20:3306/test
这个设置默认是没有权限的,需要授权
SELECT USER, HOST FROM mysql.user WHERE USER=‘root‘;
GRANT ALL PRIVILEGES ON test.* TO ‘root‘@‘192.168.3.20‘ IDENTIFIED BY ‘密码‘; flush privileges;
jdbc:mysql://192.168.3.20:3306/test // 更改为 jdbc:mysql://192.168.3.20:3306/test?serverTimezone=UTC