In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
In mysql, now gets the execution time of sql, and sysdate gets the system time.
In the master-slave process of master and slave, it will lead to time inconsistency and error reporting.
For example:
Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it uses a system function that may return a different value on the slave.
Solution:
1. Fix this problem.
2. Instead of using the statement-level replication of statement, but similar to oracle, record the data changes and execute them in the standby database as is.
The second way is the well-known way of binlog_format=ROW. The first is that now () does not use machine system time, but takes the variable "TIMESTAMP" value of mysql.
Other similar variables include insert_id (the value of AUTO_INCREMENT for replication), and so on.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.