aws上的mysql数据库服务器设置夏令时?偏移了一个小时,导致所有用户登录的session失效,现在如何改时区呢?
解决方案 »
- 哪位高手帮忙解决:ODBC存储数组进入mysql数据库。
- Mysql中用sql语句创建表时字段默认值
- 小妹请教前辈帮我调一下or语句问题!
- mysql中的表类型从innodb改成myisam类型出现the total number of locks exceeds the lock table si
- 无头绪--跨表区域统计查询
- java连接Mysql错误,请高手帮助?
- 请问mysql纪录的硬换行是用什么表示?谢谢!
- mysql中怎样取前几条记录?
- 如何实时监控mysql中的SQL语句的执行情况?
- 【求助】mysql查询三个表
- mysql 的奇怪现象
- 对于这个要求,我有以下几个方案,大家来看看或者出主意。回者给分~!
没有管用啊?我设置了 ,结果select now() 还是不管用啊!
+---------------------+
| now() |
+---------------------+
| 2011-03-28 10:25:14 |
+---------------------+
1 row in set (0.00 sec)mysql> SET GLOBAL time_zone = '+6:00';
Query OK, 0 rows affected (0.00 sec)mysql> select now();
+---------------------+
| now() |
+---------------------+
| 2011-03-28 10:25:21 |
+---------------------+
1 row in set (0.00 sec)mysql> create table t11 select now();
Query OK, 1 row affected, 2 warnings (0.03 sec)
Records: 1 Duplicates: 0 Warnings: 0mysql> select * from t11;
+---------------------+
| now() |
+---------------------+
| 2011-03-28 10:25:28 |
+---------------------+
1 row in set (0.00 sec)mysql>
在my.cnf的参数里面怎么设置呢?