mysql 在执行写入操作的时候,报错:

mysql 在执行写入操作的时候,报错:

The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement

解决方式:

  1.  
    1.登录的mysql:mysql –u root –p
  2.  
     
  3.  
     
  4.  
     
  5.  
    2mysql> set global read_only=0;
  6.  
    ( 关掉新主库的只读属性)
  7.  
     
  8.  flush privileges
posted @ 2020-12-21 09:53  guofen3399  阅读(107)  评论(0)    收藏  举报