Notes on mysql8.0

1. The driver needs to be replaced with: com.mysql.cj.jdbc.Driver

2. The jar package needs to be updated to a version after 8.0

3.jdbc:mysql://localhost:3306/database?useUnicode=true&serverTimezone=GMT%2B8&useSSL=false&allowPublicKeyRetrieval=true&characterEncoding=utf-8&rewriteBatchedStatements=true

Need to set the time zone.

4. mysql8.0 uses a new encryption method for user login, and the client needs to reset the encryption method when logging in, or directly select the previous encryption method when installing

After the installation is complete, change the encryption method, and the client can log in:

 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '你的密码'

Guess you like

Origin blog.csdn.net/ke369093457/article/details/84817035
Recommended