![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
′负重前行
这个作者很懒,什么都没留下…
展开
-
服务器mysql允许/关闭远程连接
允许远程连接:登录数据库:mysql -u root -h localhost -p选库: use mysql更新用户权限: update user set host='%' where user='root' and host='localhost';刷新权限:flush privileges;关闭远程连接:选库: use mysqlupdate user set host='localhost' where user='root';flush privileges;...原创 2020-09-19 11:19:02 · 178 阅读 · 0 评论 -
数据库时间获取出来大于当前时间8小时
查看数据库时区:show variables like "%time_zone%"SYTEM代表系统时区,因时区的问题,所以查询出来后 时间+8小时了。解决方案:serverTimezone=UTC 改成 serverTimezone=Asia/Shanghai原创 2020-08-11 23:03:28 · 1003 阅读 · 0 评论