com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'test.QRTZ_TRIGGERS' doesn't exist

问题: 数据库中明这张表 qrtz_triggers 还是报这个错

原因:这个错报的是在数据库 test 下面没有这个表 【QRTZ_TRIGGERS】,其实数据库中有的是 【qrtz_triggers】。区别在于一个是大写,一个是小写。默认情况下,mysql是区分大小写的,所以为了避免这种问题,就需要把 mysql 的区分大小写的属性给修改了。

解决办法:

  1. 用root登录,修改 /etc/my.cnf;
  2. 在[mysqld]节点下,加入一行: lower_case_table_names=1
  3. 重启MySQL即可;
  4. linux重启方法
  5. CentOS 7. mysql启动命令

    [root@xufeng Desktop]# /bin/systemctl start mysqld.service2.关闭命令[root@xufeng ~]# /bin/systemctl stop mysqld.service3.重启命令[root@xufeng ~]# /bin/systemctl restart mysqld.service

猜你喜欢

转载自blog.csdn.net/rumengqiang/article/details/81879281
今日推荐