当前位置:网站首页>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 ......
边栏推荐
- 7-15 h0161. Find the greatest common divisor and the least common multiple (PTA program design)
- 【数据库 三大范式】一看就懂
- 记一次edu,SQL注入实战
- Meituan dynamic thread pool practice ideas, open source
- 强化学习基础记录
- The difference between layer 3 switch and router
- Canvas foundation 2 - arc - draw arc
- Sword finger offer 23 - print binary tree from top to bottom
- 攻防世界MISC练习区(gif 掀桌子 ext3 )
- 图书管理系统
猜你喜欢
Build domain environment (win)
An unhandled exception occurred when C connected to SQL Server: system Argumentexception: "keyword not supported:" integrated
HackMyvm靶机系列(1)-webmaster
内网渗透之内网信息收集(四)
WEB漏洞-文件操作之文件包含漏洞
Package bedding of components
Poker game program - man machine confrontation
攻防世界MISC练习区(SimpleRAR、base64stego、功夫再高也怕菜刀)
Record once, modify password logic vulnerability actual combat
Xray and Burp linked Mining
随机推荐
1143_ SiCp learning notes_ Tree recursion
Callback function ----------- callback
Network technology related topics
7-14 error ticket (PTA program design)
XSS unexpected event
HackMyvm靶机系列(7)-Tron
Record an API interface SQL injection practice
《统计学》第八版贾俊平第十三章时间序列分析和预测知识点总结及课后习题答案
Data mining - a discussion on sample imbalance in classification problems
7-7 7003 combination lock (PTA program design)
[insert, modify and delete data in the headsong educator data table]
HackMyvm靶機系列(3)-visions
Intranet information collection of Intranet penetration (5)
. How to upload XMIND files to Jinshan document sharing online editing?
DVWA (5th week)
Mathematical modeling idea of 2022 central China Cup
Attack and defense world misc practice area (GIF lift table ext3)
Strengthen basic learning records
SQL injection
Feature extraction and detection 14 plane object recognition