开发者

How do I change the mysql server date using SQL

开发者 https://www.devze.com 2023-03-04 23:57 出处:网络
I need to change the server date via sql. Preferably through my application (CL is also good). How do I change the mysql server date using SQL?

I need to change the server date via sql.

Preferably through my application (CL is also good).

How do I change the mysql server date using SQL?

Why: We test a scenario that spans several weeks. To test it we need to advan开发者_运维百科ce the server date by that time.


Do you want to change the server date or the server timezone?

If it is the server date, you have to do it at the OS level.

If it is the time zone, you can change it globally for entire database instance or for your session/connection only.


The SET TIMESTAMP statement affects the value returned by NOW() but not by SYSDATE()

0

精彩评论

暂无评论...
验证码 换一张
取 消