当前位置:网站首页>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 ......
边栏推荐
- The most popular colloquial system explains the base of numbers
- 强化学习基础记录
- Sword finger offer 23 - print binary tree from top to bottom
- 7-3 construction hash table (PTA program design)
- Build domain environment (win)
- HackMyvm靶机系列(5)-warez
- Web vulnerability - File Inclusion Vulnerability of file operation
- Experiment 8 exception handling
- Poker game program - man machine confrontation
- 7-5 staircase upgrade (PTA program design)
猜你喜欢

HackMyvm靶机系列(5)-warez

外网打点(信息收集)

Hackmyvm Target Series (3) - vues

强化学习基础记录

Web vulnerability - File Inclusion Vulnerability of file operation

攻防世界MISC练习区(SimpleRAR、base64stego、功夫再高也怕菜刀)

Apache APIs IX has the risk of rewriting the x-real-ip header (cve-2022-24112)

循环队列(C语言)

Poker game program - man machine confrontation

内网渗透之内网信息收集(五)
随机推荐
Feature extraction and detection 14 plane object recognition
The United States has repeatedly revealed that the yield of interest rate hiked treasury bonds continued to rise
【educoder数据库实验 索引】
浅谈漏洞发现思路
XSS unexpected event
Brief introduction to XHR - basic use of XHR
网络基础之路由详解
Ucos-iii learning records (11) - task management
Experiment 4 array
Sqqyw (indifferent dot icon system) vulnerability recurrence and 74cms vulnerability recurrence
Canvas foundation 1 - draw a straight line (easy to understand)
Detailed explanation of network foundation routing
[err] 1055 - expression 1 of order by clause is not in group by clause MySQL
Interpretation of iterator related "itertools" module usage
Xray and burp linkage mining
JDBC read this article is enough
小程序web抓包-fiddler
Canvas foundation 2 - arc - draw arc
Hackmyvm target series (3) -visions
What language should I learn from zero foundation. Suggestions