##查看当前时间
select curtime();
##查看当前时区设置
show variables like "%time_zone%"; ##修改mysql全局时区为北京时间,即我们所在的东8区
set global time_zone = '+8:00';
##修改当前会话时区
set time_zone = '+8:00';
#立即生效
flush privileges;
相关文章
- 小程序设置apiBase
- node设置cookie
- WNMP环境搭建步骤 nginx1.4.3+php-5.3.27+mysql-5.5+RunHiddenConsole
- Mysql5.7自定义函数递归报错1424 Recursive stored functions and triggers are not allowed
- 有关使用phpstudy搭建sqli-lab环境搭建时发生Uncaught Error: Call to undefined function mysql_connect()错误
- mysql if()
- mysql错误一例:ERROR 1030 (HY000): Got error 28 from storage engine
- MySQL搜索:WHERE
- mysql搜索不区分大小写
- css 边距等常用设置