当前位置:网站首页>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 ......
边栏推荐
- 链队实现(C语言)
- Simply understand the promise of ES6
- 攻防世界MISC练习区(gif 掀桌子 ext3 )
- XSS unexpected event
- 力扣152题乘数最大子数组
- 7-1 output all primes between 2 and n (PTA programming)
- Spot gold prices rose amid volatility, and the rise in U.S. prices is likely to become the key to the future
- Hackmyvm target series (7) -tron
- 内网渗透之内网信息收集(四)
- 网络基础之路由详解
猜你喜欢
JDBC transactions, batch processing, and connection pooling (super detailed)
Harmonyos application development -- address book management system telmanagesys based on listcontainer [phonebook][api v6]
Hackmyvm target series (2) -warrior
攻防世界MISC练习区(gif 掀桌子 ext3 )
Strengthen basic learning records
Attach the simplified sample database to the SQLSERVER database instance
Canvas foundation 2 - arc - draw arc
An unhandled exception occurred when C connected to SQL Server: system Argumentexception: "keyword not supported:" integrated
中间件漏洞复现—apache
Intranet information collection of Intranet penetration (2)
随机推荐
Hackmyvm Target Series (3) - vues
记一次,修改密码逻辑漏洞实战
Circular queue (C language)
What language should I learn from zero foundation. Suggestions
【educoder数据库实验 索引】
循环队列(C语言)
【头歌educoder数据表中数据的插入、修改和删除】
附加简化版示例数据库到SqlServer数据库实例中
记一次edu,SQL注入实战
Brief introduction to XHR - basic use of XHR
记一次api接口SQL注入实战
[experiment index of educator database]
1143_ SiCp learning notes_ Tree recursion
HackMyvm靶机系列(3)-visions
xray与burp联动 挖掘
内网渗透之内网信息收集(四)
[err] 1055 - expression 1 of order by clause is not in group by clause MySQL
msf生成payload大全
HackMyvm靶机系列(2)-warrior
HackMyvm靶机系列(6)-videoclub