mysql创建用户并授权Repl_slave_priv和Repl_client_priv
Posted xiaostudy
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql创建用户并授权Repl_slave_priv和Repl_client_priv相关的知识,希望对你有一定的参考价值。
1 CREATE USER ‘test‘@‘localhost‘ IDENTIFIED BY ‘test‘; 2 3 FLUSH PRIVILEGES; 4 5 6 GRANT REPLICATION CLIENT ON *.* TO test@localhost IDENTIFIED BY ‘test‘; 7 8 GRANT REPLICATION SLAVE ON *.* TO test@localhost IDENTIFIED BY ‘test‘; 9 10 RESET SLAVE;
以上是关于mysql创建用户并授权Repl_slave_priv和Repl_client_priv的主要内容,如果未能解决你的问题,请参考以下文章