The problems and solutions encountered when deploying the project during the upgrade of MySQL database version from 5.6.28 to 8.0.11 are described in detail as follows: First of all, this project uses hibernate4.2.0, and there is no problem connecting to mysql5.6.28. After changing to 8.0.11, an error is reported when starting 1.Caused by: org.hibernate.HibernateException: Connection cannot be null when 'hibernate.dialect' not set If an error occurs, configure it There is no error when starting the project, but an error is reported when accessing the project 2. Access error com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Client does not support authentication protocol requested by server; consider upgrading MySQL client The reason is: the configuration process of Authentication Method during the installation of mysql8 is based on different encryption methods. If you choose the first strong encryption method, the phenomenon I described before will occur; you should choose the second authentication method, that is, keep the old encryption method. So there are 3 solutions: 1. Reinstall mysql8, and select the second option to keep the old encryption method. 2.MySQL Installer can directly modify the Authentication Method configuration 3. Directly execute statement modification mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456'; Query OK, 0 rows affected (0.11 sec) mysql> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.01 sec) Note: root is the username, localhost refers to the local machine, mysql_native_password is the old password verification mechanism, and 123456 is the password Summarize The above is the problems and solutions encountered in the process of deploying the project when upgrading the Mysql database from version 5.6.28 to version 8.0.11. I hope it will be helpful to everyone. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: Two implementations of front-end routing from vue-router
>>: Raspberry Pi msmtp and mutt installation and configuration tutorial
When using nginx as a reverse proxy, you can simp...
A transaction is a logical group of operations. E...
Horizontal scrolling isn’t appropriate in all situ...
Previously, we all used files with the suffix .ms...
Sysbench is an excellent benchmark tool that can ...
1: Define a stored procedure to separate strings ...
This article example shares the specific code of ...
This article shares the specific code of js to ac...
Adding the extra_hosts keyword in docker-compose....
Mainly used knowledge points: •css3 3d transforma...
1. Log in to VPN using IE browser 2. Remote login...
Table of contents Overview Object rest attribute ...
The author of this article @子木yoyo posted it on hi...
Installation Environment Centos Environment Depen...
Table of contents 1.setInterval() 2.setTimeout() ...