org.hibernate.exception.SQLGrammarException: could not extract ResultSet解决方法

2021/12/16 2:40:54

本文主要是介绍org.hibernate.exception.SQLGrammarException: could not extract ResultSet解决方法,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

报错信息为:

com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown error 1146
org.hibernate.exception.SQLGrammarException: could not extract ResultSet

解决方法:mysql设置不区分大小写,重启mysql即可

  1. mysql登录root用户,修改/etc/my.cnf文件
vim etc/my.cnf
  1. 在 [mysqld] 节点下,加入一行:
lower_case_table_names=1
  1. 重启 MySQL ;
service mysqld restart


这篇关于org.hibernate.exception.SQLGrammarException: could not extract ResultSet解决方法的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程