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

 com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'mucp.QRTZ_TRIGGERS' doesn't existf

原因:这个错报的是在数据库 test 下面没有这个表 【QRTZ_TRIGGERS】,其实数据库中有的是 【qrtz_triggers】。区别在于一个是大写,一个是小写。默认情况下,mysql 在windows下不区分大小写,在unix是区分大小写的,所以为了避免这种问题,就需要把 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

或者代码中更改成对应的大小写表名。

原文地址:https://www.cnblogs.com/dayspring/p/13082990.html