com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed

后端 未结 6 2158
闹比i
闹比i 2020-11-30 00:01

I built an application and deployed locally ... and it was working perfectly. I deployed it on a remote server and started getting the exception mentioned in the subject lin

6条回答
  •  -上瘾入骨i
    2020-11-30 00:11

    1. First Replace the MySQL dependency as given below

      
          mysql
          mysql-connector-java
          5.1.44
      
      
    2. An error showing "Authentication plugin 'caching_sha2_password'" will appear. Run this command:

      mysql -u root -p
      ALTER USER 'username'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
      

提交回复
热议问题