1.关闭change buffer
set global.innodb_change_buffering=0;


2.将mysql执行slow shutdown(即干净关闭)
set global.innodb_fast_shutdown=0;
然后关闭mysql实例。


3.以只读模式开启前进行配置
设置--innodb-read-only=1

如果innodb要放在在只读的介质上:
设置--pid-file=path_on_writable_media、--event-scheduler=disabled

将temp表空间配置到到可写的位置:
--innodb-temp-data-file-path=../../../tmp/ibtmp1:12M:autoextend

相关文章:

  • 2021-11-27
  • 2021-09-13
  • 2022-12-23
  • 2021-10-15
  • 2021-09-27
  • 2022-02-07
  • 2022-12-23
  • 2021-11-21
猜你喜欢
  • 2022-12-23
  • 2021-07-11
  • 2021-12-25
  • 2022-12-23
  • 2021-09-15
相关资源
相似解决方案