![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MySQL
文章平均质量分 52
UnforgetMemory
这个作者很懒,什么都没留下…
展开
-
MySQL datetime 插入时间少8小时
MySQL版本 8.0.28系统版本 openEuler 22.03 LTS在springboot项目中进行crud操作时,插入数据库前后时间相差八小时原因MySQL连接配置中serverTimezone=UTCMySQL所在服务器时区Asia/Shanghai进入MySQL,查询使用的时区show variables like "%time_zone%";可知MySQL使用了本地服务器时区解决将MySQL连接配置中的时区设置为与服务器一同的时区serverTimez.原创 2022-05-17 19:15:02 · 439 阅读 · 0 评论 -
openEuler简单部署MySQL
openEuler 22.03 LTS安装MySQL-8.0.28当前openEuler源自带最新版本为8.0.28,也有MySQL5版本。dnf install -y mysqldnf install -y mysql-server开启服务systemctl start mysqldsystemctl enable mysqld进入MySQLmysql修改root密码mysqlroot 为所需密码alter user 'root'@'localhost' iden.原创 2022-05-09 19:44:51 · 1448 阅读 · 2 评论