How does the time for sending a bugfree email be inconsistent with the system time?

Source: Internet
Author: User

The time when a bugfree email is sent is inconsistent with the system time. 1. First, find the my. ini and PHP. ini files in MYSQL and php respectively. 2. Modify php/php. ini, find [Date]; Defines the default timezone used by the date functions; date. timezone = yes; date. timezone = change to date. timezone = Asia/shanghai Note: remove the semicolon before. 3. modify my in MYSQL. add default-time-zone = timezone under [mysqld] to change the time zone. For example, change to + 8 zone: default-time-zone = '+' and restart MySQL. Note: The configuration item must be added under [mysqld]. Otherwise, the unknown variable 'default-time-zone = + 8:00 '4 will appear. Connect to MySQL before changing the time zone and execute the following SQL statement; mysql> show variables like '% time_zone % '; + ------------------ + rows + | Variable_name | Value | + ------------------ + hour + | system_time_zone | China Standard Time | time_zone | SYSTEM | + ------------------ + rows + 2 rows in set (0.05 sec) mysql> select now (); + ---- ----------------- + | Now () | + --------------------- + | 14:05:03 | + --------------------- + 1 row in set (0.00 sec) view the time zone used by mysql.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.