tech series
华丽转身Kiss
咸鱼一小块
展开
-
MariaDB chinese messy code problem
1. Check the character_set of MariaDB. mysql[none]> show variables like '%character_set_%'; 2.Set permanent charset. $ vi /etc/my.cnf.d/client.cnf [client] default-character-se=utf8 $ vi /etc/...原创 2019-07-23 11:23:07 · 80 阅读 · 0 评论 -
SpringBoot Project: Create specific table on project start
Some days ago, my leader tell me to complete a mission that automatically creating a table when starting the SpringBoot project. After struggling for some time, I find some ways that can achieve that...原创 2019-08-07 15:41:25 · 130 阅读 · 0 评论 -
Java.sql.SQLException: Zero date value prohibited
This problem is not about MySQL database, but about JDBC: Solution: JDBCurl: add parameter zeroDateTimeBehavior=convertToNull JDBCurl: add parameter zeroDateTimeBehavior=round原创 2019-08-07 18:34:25 · 248 阅读 · 0 评论 -
Mariadb:Incorrect datetime value
It can hold values starting at ‘1970-01-01 00:00:01’ (UTC) to ‘2038-01-19 05:14:07’ (UTC).原创 2019-08-07 18:36:38 · 358 阅读 · 0 评论