mysql命令查询

含义 命令
查看gtid是否开启
show variables like '%gtid%';
 查看只读信息

 show global variables like "%read_only%";

 set global read_only=1;

read_only=1只读模式,可以限定普通用户进行数据修改的操作,但不会限定具有super权限的用户的数据修改操作

 查看数据写入模式
 show variables like "%innodb_flush_log_at_trx_commit%";
https://www.cnblogs.com/zhangshengdong/p/9172560.html
 修改密码  SET PASSWORD = PASSWORD('123456');  
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
原文地址:https://www.cnblogs.com/kevincaptain/p/10342339.html