In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Method 1
#View time zone show variables like "%time_zone%";set global time_zone = '+8: 00'; ##Modify mysql global time zone to Beijing time, i.e. our East 8 zone set time_zone = '+8: 00'; ##Modify current session time zone flush privileges; #Effective immediately
Method 2
linux
# vim /etc/my.cnf ##Add default-time_zone = '+8: 00'# /etc/init.d/mysqld restart ##Restart mysql to make the new time zone take effect
windows
Modify the configuration file my.ini
Path C:\ProgramData\MySQL\MySQL Server 5.7
ProgramData is a hidden folder
Add under [mysqld]
#Set default time zone default-time-zone='+08: 00'
Restart mysql in cmd as administrator
net stop mysqlnet start mysql
If it's wrong,
Invalid service name. Type HELNET PMSG 2185 for more help.
Error in service name Please check service name in Services
windows+r, open run, enter services.msc, find mysql services,
View service name mysql57,
net stop mysql57net start mysql57
The above is mysql view and modify the time zone method details, more please pay attention to other related articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.