mysql主從配置經常使用命令

受權遠程用戶權限(須要把my.cnf中的bind-address=127.0.0.1註釋)
grant all privileges on *.* to username@'%' identified by 'password';
grant all privileges on *.* to username@'%' identified by 'password';


主從
show master status;
change master to Master_Log_File='mysql-bin.011558',Master_Log_Pos=605505007;
set global sql_slave_skip_counter =10000;start slave;


show slave status\G
stop slave;
start slave;mysql

相關文章
相關標籤/搜索