Variable 'log_slave_updates' is a read only variable 不重启修改mysql变量

  • 执行复制的时候遇到的问题
mysql> show variables like 'log_slave_updates';  
+-------------------+-------+  
| Variable_name     | Value |  
+-------------------+-------+  
| log_slave_updates | OFF   |  
+-------------------+-------+  
1 row in set (0.00 sec)  
  
mysql> set global log_slave_updates=1;  
ERROR 1238 (HY000): Variable 'log_slave_updates' is a read only variable  

mysql> system gdb -p $(pidof mysqld) -ex "set opt_log_slave_updates=1" -batch  
mysql> show variables like 'log_slave_updates';  
+-------------------+-------+  
| Variable_name | Value |  
+-------------------+-------+  
| log_slave_updates | ON |  
+-------------------+-------+  

相关文章:

  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
猜你喜欢
  • 2022-12-23
  • 2021-11-17
  • 2022-03-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案