当前位置:Gxlcms > 数据库问题 > mariadb主从

mariadb主从

时间:2021-07-01 10:21:17 帮助过:3人阅读

|      5416 |              | information_schema,mysql,performance_schema |

+------------------+----------+--------------+---------------------------------------------+

1 row in set (0.00 sec)

 

mysql -p123qwe

 

stop slave;

CHANGE MASTER TO MASTER_HOST=‘172.16.0.226‘, MASTER_USER=‘abc‘,  MASTER_PASSWORD=‘123qwe‘, MASTER_LOG_FILE=‘testsql.000001‘, MASTER_LOG_POS=5416;

start slave;        

show slave status\G;

 

select host,user from mysql.user;   

delete from mysql.user where user=‘repl‘;

show master status;

show variables like ‘server_id‘;

 

mariadb主从

标签:orm   mat   sele   rom   _id   ant   creat   mysql   color   

人气教程排行