2021-06-09 13:17:58 +02:00
|
|
|
create table global_priv_backup select * from mysql.global_priv;
|
|
|
|
update mysql.global_priv set priv=json_insert(priv, '$.plugin', 'unix_socket');
|
|
|
|
delete from mysql.global_priv where user != 'root';
|
2014-03-13 16:35:14 +01:00
|
|
|
flush privileges;
|
|
|
|
connect(localhost,USER,,test,MASTER_PORT,MASTER_SOCKET);
|
2014-03-16 19:21:37 +01:00
|
|
|
ERROR 28000: Access denied for user 'USER'@'localhost'
|
|
|
|
ERROR 28000: Access denied for user 'USER'@'localhost'
|
2021-06-09 13:17:58 +02:00
|
|
|
replace mysql.global_priv select * from global_priv_backup;
|
2014-03-13 16:35:14 +01:00
|
|
|
flush privileges;
|
2021-06-09 13:17:58 +02:00
|
|
|
drop table global_priv_backup;
|