rpl_ignore_grant.result

来自「这是linux下运行的mysql软件包,可用于linux 下安装 php + m」· RESULT 代码 · 共 38 行

RESULT
38
字号
stop slave;drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;reset master;reset slave;drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;start slave;delete from mysql.user where user=_binary'rpl_ignore_grant';delete from mysql.db where user=_binary'rpl_ignore_grant';flush privileges;delete from mysql.user where user=_binary'rpl_ignore_grant';delete from mysql.db where user=_binary'rpl_ignore_grant';flush privileges;grant select on *.* to rpl_ignore_grant@localhost;grant drop on test.* to rpl_ignore_grant@localhost;show grants for rpl_ignore_grant@localhost;Grants for rpl_ignore_grant@localhostGRANT SELECT ON *.* TO 'rpl_ignore_grant'@'localhost'GRANT DROP ON `test`.* TO 'rpl_ignore_grant'@'localhost'show grants for rpl_ignore_grant@localhost;ERROR 42000: There is no such grant defined for user 'rpl_ignore_grant' on host 'localhost'select count(*) from mysql.user where user=_binary'rpl_ignore_grant';count(*)0select count(*) from mysql.db where user=_binary'rpl_ignore_grant';count(*)0grant select on *.* to rpl_ignore_grant@localhost;set password for rpl_ignore_grant@localhost=password("does it work?");select password<>_binary'' from mysql.user where user=_binary'rpl_ignore_grant';password<>_binary''0delete from mysql.user where user=_binary'rpl_ignore_grant';delete from mysql.db where user=_binary'rpl_ignore_grant';flush privileges;delete from mysql.user where user=_binary'rpl_ignore_grant';delete from mysql.db where user=_binary'rpl_ignore_grant';flush privileges;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?