<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>mysql日志记录时间 &#8211; moneyslow.com</title>
	<atom:link href="https://moneyslow.com/tag/mysql%e6%97%a5%e5%bf%97%e8%ae%b0%e5%bd%95%e6%97%b6%e9%97%b4/feed" rel="self" type="application/rss+xml" />
	<link>https://moneyslow.com</link>
	<description>making money with technology</description>
	<lastBuildDate>Mon, 12 Jul 2021 10:29:05 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.4</generator>
	<item>
		<title>修改mysql 5.7.27日志时区从UTC到SYSTEM（数据库时间 和 日志记录时间不一样解决办法）</title>
		<link>https://moneyslow.com/%e4%bf%ae%e6%94%b9mysql%e6%97%a5%e5%bf%97%e6%97%b6%e5%8c%ba%e4%bb%8eutc%e5%88%b0system%ef%bc%88%e6%95%b0%e6%8d%ae%e5%ba%93%e6%97%b6%e9%97%b4-%e5%92%8c-%e6%97%a5%e5%bf%97%e8%ae%b0%e5%bd%95%e6%97%b6.html</link>
		
		<dc:creator><![CDATA[moneyslow]]></dc:creator>
		<pubDate>Sat, 03 Jul 2021 03:16:12 +0000</pubDate>
				<category><![CDATA[newest]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql日志记录时间]]></category>
		<category><![CDATA[互联网技术]]></category>
		<guid isPermaLink="false">https://moneyslow.com/?p=13643</guid>

					<description><![CDATA[问题：mysql的日志显示时间少8个小时，明显是时区问题。 先查看数据库时间是对的： mysql&#62; select now(); +---------------------+ &#124; now() &#124; +---------------------+ &#124; 2021-07-03 11:03:15 &#124; +---------------------+ 1 row in set (0.01 sec) 再次查看默认的系统时区system_time_zone是CST，time_zone是跟随SYSTEM，所以也是CST，mysql数据库采用的时区没有问题，都是中国时区的时间。 mysql&#62; show variables like "%time_zone%"; +------------------+--------+ &#124; Variable_name &#124; Value &#124; +------------------+--------+ &#124; system_time_zone &#124; CST &#124; &#124; time_zone &#124; SYSTEM &#124; +------------------+--------+ 2 rows in set (0.01 sec) 但是mysql的日志时间是不对的，比正常时间晚了8个小时，查看日志采用的时区log_timestamps，发现是UTC mysql&#62; SHOW global [&#8230;]]]></description>
		
		
		
			</item>
	</channel>
</rss>
