当前位置:网站首页>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 ......
边栏推荐
- Internet Management (Information Collection)
- Harmonyos JS demo application development
- 攻防世界MISC练习区(SimpleRAR、base64stego、功夫再高也怕菜刀)
- Network layer - simple ARP disconnection
- XSS之冷门事件
- 附加简化版示例数据库到SqlServer数据库实例中
- 强化学习基础记录
- On the idea of vulnerability discovery
- xray与burp联动 挖掘
- XSS (cross site scripting attack) for security interview
猜你喜欢
Strengthen basic learning records
[dark horse morning post] Shanghai Municipal Bureau of supervision responded that Zhong Xue had a high fever and did not melt; Michael admitted that two batches of pure milk were unqualified; Wechat i
Detailed explanation of network foundation routing
UGUI—Text
Wei Shen of Peking University revealed the current situation: his class is not very good, and there are only 5 or 6 middle-term students left after leaving class
网络基础详解
Hackmyvm target series (1) -webmaster
Ucos-iii learning records (11) - task management
内网渗透之内网信息收集(五)
Canvas foundation 1 - draw a straight line (easy to understand)
随机推荐
Xray and burp linkage mining
Hackmyvm target series (4) -vulny
What language should I learn from zero foundation. Suggestions
网络基础详解
Strengthen basic learning records
Data mining - a discussion on sample imbalance in classification problems
记一次api接口SQL注入实战
Mixlab unbounded community white paper officially released
Simply understand the promise of ES6
HackMyvm靶机系列(2)-warrior
外网打点(信息收集)
7-6 local minimum of matrix (PTA program design)
Sword finger offer 23 - print binary tree from top to bottom
Middleware vulnerability recurrence Apache
7-4 hash table search (PTA program design)
【educoder数据库实验 索引】
浅谈漏洞发现思路
Harmonyos JS demo application development
【MySQL-表结构与完整性约束的修改(ALTER)】
力扣152题乘数最大子数组