Mysql
hdn_kb
这个作者很懒,什么都没留下…
展开
-
mysql数据库中明明有表,但是却提示表不存在
在linux中安装了mysql之后,发生了一个问题:明明表在数据库中存在,但是通过select语句查询却提示Table 'tablename' doesn't exist经过排查是因为使用select语句进行查询的时候没有对表名区分大小写,这就需要在/etc/my.cnf配置文件中添加:lower_case_table_names=1,然后将mysql服务重新启动即可。...原创 2020-12-14 22:05:29 · 20979 阅读 · 5 评论 -
Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdb
Mysql中的异常提示:Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the ...原创 2018-11-03 11:49:13 · 2136 阅读 · 0 评论 -
The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone. You
使用mysql出现了乱码,导致数据查不到:The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone config...原创 2018-11-03 11:53:39 · 708 阅读 · 1 评论 -
java.lang.NoClassDefFoundError: org/apache/commons/dbutils/ResultSetHandler
在idea中访问serlvet出现:java.lang.NoClassDefFoundError: org/apache/commons/dbutils/ResultSetHandler在网上查了好多资料都是说缺少commons-dbutils-1.7.jar这个jar包。可是在我的这个项目中明明加上了这个jar包,如图:也进行了Add as Library...结果始终不...原创 2019-01-14 14:39:10 · 15132 阅读 · 32 评论 -
Access denied for user 'root'@'localhost' (using password:YES)
windows中的解决办法:打开数据库对其密码进行修改:Linux系统中的解决办法: linux下远程连接mysql报 1045的错误:网上说的是改root用户的密码于是我在linux系统中进入到mysql中进行密码修改,执行了如下语句:SET PASSWORD FOR 'root'@'localhost' = PASSWORD('123456')GRANT ALL P...原创 2019-01-14 15:09:30 · 729 阅读 · 0 评论 -
对关系型数据库ACID规则的理解
ACID是事务的四大特性:A(Atomicity)原子性:事务里的所有操作要么全部做完,要么都不做,事务成功的条件是事务里的所有操作都成功,只要有一个操作失败,整个事务就失败,需要回滚。例子:在银行转账,从A账户转100元到B账户,需要两步:1)从A账户取100元;2)存入100元至B账户。这两步要么一起完成,要么一起不完成,如果只完成第一步,第二部失败,钱会莫名其妙少了100元。C(...翻译 2019-08-14 22:26:11 · 712 阅读 · 0 评论 -
The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone.
在写数据库相关项目时,出现The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration pro...转载 2019-08-29 11:07:11 · 269 阅读 · 0 评论 -
SpringBoot+Mybatis+MySQL页面显示乱码,显示的是??问号
SpringBoot+Mybatis+MySQL页面显示乱码,如下图:解决办法:在Controller的映射中添加produces = "application/json;charset=utf-8",即可解决乱码问题。解决后的显示:...转载 2019-09-10 20:59:48 · 298 阅读 · 0 评论