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
This article uses examples to illustrate the prin...
This article shares the MySQL free installation c...
First, the server environment information: Reason...
I think the carousel is a relatively important po...
It is not possible to use width and height directl...
Conventional solution Use FileReader to read the ...
1. Call the parent component method directly thro...
mktemp Create temporary files or directories in a...
SQL is the main trunk. Why do I understand it thi...
Table of contents Preface What are asynchronous i...
This tutorial shares the installation and configu...
Table of contents 1. DateTimePicker date selectio...
Error: Connection to blog0@localhost failed. [080...
Preface The three-column layout, as the name sugg...
This article shares the specific code for JavaScr...