当前位置:网站首页>Solutions to common problems in database development such as MySQL
Solutions to common problems in database development such as MySQL
2022-07-06 14:22:00 【Programming pebbles】
One ,mysql Database correlation (java)
1,Caused by: java.sql.SQLException: 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 property) to use a more specifc time zone value if you want to utilize time zone support.
solve : Through the last sentence, we know ,JDBC 8 The time zone must be configured for the above version
So you have to connect MySQL The location of the server address ?serverTimeZone=UTC

2, When creating a data table sql The default time has been added to the statement , But it also reports errors :
SQL Error:1048,SQLState:23000
Colum createtime cannot be null


terms of settlement : In the corresponding bean Add the following two notes

Two ,idea Common errors in operating the database
1,IDEA 2019.1 Connect to the database, report errors and solve them !(08001)
The error information is as follows

The reason for this error is actually IDEA The version of the connection database driver is incorrect , Previous IDEA It uses 5.1.47 edition , So there's no problem ,2019.1.1 Version of IDEA The default is 8.0.15 So I can't connect to the database . Just change the version back to 5.1.47 To solve this problem .
Solution :
Open the database connection interface , Click on the MySQL, At this time, you will see the corresponding version on the right , At this time, just click to select the required version . My local database is MySQL5.7, choice 5.1.47 You can connect to the database . After clicking on Apply It can be applied .
New edition IDEA There may be a 2 individual MySQL Connect (MySQL and MySQL for 5.1), If you only change one, you need to use the changed one when connecting to the database , If you don't explicitly specify which one to use for connection, it's best 2 Change all of them .

Ongoing update ......
边栏推荐
- Data mining - a discussion on sample imbalance in classification problems
- Detailed explanation of three ways of HTTP caching
- 【MySQL数据库的学习】
- Record once, modify password logic vulnerability actual combat
- 附加简化版示例数据库到SqlServer数据库实例中
- Strengthen basic learning records
- 记一次,修改密码逻辑漏洞实战
- [MySQL table structure and integrity constraint modification (Alter)]
- [experiment index of educator database]
- 记一次edu,SQL注入实战
猜你喜欢

《英特尔 oneAPI—打开异构新纪元》

强化学习基础记录

Intel oneapi - opening a new era of heterogeneity

Canvas foundation 1 - draw a straight line (easy to understand)

How to turn wechat applet into uniapp

Nuxtjs quick start (nuxt2)

攻防世界MISC练习区(gif 掀桌子 ext3 )

【VMware异常问题】问题分析&解决办法

JDBC transactions, batch processing, and connection pooling (super detailed)

图书管理系统
随机推荐
Detailed explanation of network foundation routing
Poker game program - man machine confrontation
[data processing of numpy and pytoch]
记一次api接口SQL注入实战
【MySQL-表结构与完整性约束的修改(ALTER)】
How to turn wechat applet into uniapp
Simply understand the promise of ES6
1143_ SiCp learning notes_ Tree recursion
HackMyvm靶机系列(3)-visions
Harmonyos application development -- address book management system telmanagesys based on listcontainer [phonebook][api v6]
Chain team implementation (C language)
How to understand the difference between technical thinking and business thinking in Bi?
Intranet information collection of Intranet penetration (2)
【Numpy和Pytorch的数据处理】
《英特尔 oneAPI—打开异构新纪元》
[paper reproduction] cyclegan (based on pytorch framework) {unfinished}
Network layer - simple ARP disconnection
7-3 construction hash table (PTA program design)
Yugu p1012 spelling +p1019 word Solitaire (string)
JDBC事务、批处理以及连接池(超详细)