今天测试部要压力测试系统,所以重新选择服务器搭建环境,以下省略搭建过程5000字。启动Tomcat服务器时报错,如下图:
上图所说找不到表,可是我查看了库里表是存在的。表名字也是正确的。我也看了映射当中相关文件与是正确。查找问题过程中还重新导过表。依然出显问题。没有办法换了一下库,问题没有了。找大牛来查询一下,问题原因是当前Linux系统上的MYSQL区分大小写。看了一下配置文件(*.hbm.xml),果然配置文件当中是大写的。
问题是找到了,将配置文件当中改一下就OK了,可是这个不能治根。
下面是配置Mysql的文件,让Mysql不区分大小写,以下内容来源于网络:
http://280862132.iteye.com/blog/1768058
切换到root帐号,在" /etc/my.cnf " 或 " /etc/mysql/my.cnf " 中的 " [mysqld] " 下面添加添加 " lower_case_table_names=1 " 如下内容:
# The MySQL server [mysqld] port = 3306 socket = /var/lib/mysql/mysql.sock skip-external-locking key_buffer_size = 16M max_allowed_packet = 1M table_open_cache = 64 sort_buffer_size = 512K net_buffer_length = 8K read_buffer_size = 256K read_rnd_buffer_size = 512K myisam_sort_buffer_size = 8M # add here lower_case_table_names=1
使用" service mysqld restart "重启Mysql就行了。
下面符上启动Mysql相关命令:
http://blog.sina.com.cn/s/blog_6c95fee5010175t7.html
相关推荐
1、写在开头 标题之前我想说一下Linux的mysql真的实在是太坑了。太坑了。总是会出现这样那样的你想不到的问题。崩溃了。首先来罗列一下我遇到过的...Cause:com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorExcepti
Cause com.mysql.jdbc.exceptions.jdbc4.CommunicationsException The last packet successfully received from the server was 47,795,922 milliseconds ago. The last packet sent successfully to the server was...
com.mysql.jdbc.CommunicationsException Communications link failure due to underlying exception:
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user ''@'localhost' to database 'hibernate' at sun.reflect.NativeConstructorAccessorImpl.new
博文链接:https://zyx19920203.iteye.com/blog/2301226
com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Error:GlobalConfigUtils setMetaData Fail !
c-jdbc数据库集群中间件详细配置方案(mysql),可以同步使用多个数据库数据交换。
可以通过异常:Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Acc
问题 Table ‘zup.Domain_System’ doesn’t exist ...### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'zup.Domain_System' doesn't exist ; bad SQL grammar []; nested
MyEclipse8.x 汉化 包括汉化语言包和汉化方法
(1)A删除不存在的记录,获取共享间隙锁; (2)B插入,必须获得排他间隙锁,故互斥; • 并发插入相同记录,可能死锁(某一个回滚) • 并发插入,可能出现间隙锁死锁(难排查) • show engine innodb status; 可以查看...
1、Caused by: com.MySQL.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 56,201,339 milliseconds ago. The last packet sent successfully to the...
jeecms2012sp1支持高版本mysql数据库补丁 ...com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown table 'table_names' in information_schema 使用方法:压缩包解压,将文件拷贝到对应的目录即可
解决:com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after statement closed.
可用包+源码;最新版nacos-server-1.2.0.tar.gz 支持mysql 8.0
MySQL Connector/J is licensed under the GPL or a commercial license from MySQL AB. If you have licensed this product under the GPL, please see the COPYING file for more information. There are ...
MySQL Connector/J @MYSQL_CJ_VERSION@ (formerly MM.MySQL) MySQL AB's JDBC Driver for MySQL Copyright (c) 2003 MySQL AB <br>CONTENTS <br>* License * Documentation Location <br> ...
mysql数据库版本从5.6.28升到8.0.11过程中部署项目时遇到的问题和解决方法,具体介绍如下所示: 首先这个项目用到了hibernate4.2.0,链接mysql...2.访问报错com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon
Caused by: org.apache.ibatis.exceptions.PersistenceException: Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested ...