2013-01-25 09:41:26 +01:00
|
|
|
optimize table mysql.user;
|
|
|
|
Table Op Msg_type Msg_text
|
|
|
|
mysql.user optimize status OK
|
|
|
|
insert mysql.user (user,plugin) values ('foo','bar'),('bar','bar'),('baz','bar');
|
|
|
|
Warnings:
|
|
|
|
Warning 1364 Field 'ssl_cipher' doesn't have a default value
|
|
|
|
Warning 1364 Field 'x509_issuer' doesn't have a default value
|
|
|
|
Warning 1364 Field 'x509_subject' doesn't have a default value
|
2013-01-25 11:24:42 +01:00
|
|
|
Warning 1364 Field 'authentication_string' doesn't have a default value
|
2013-01-25 09:41:26 +01:00
|
|
|
flush privileges;
|
|
|
|
connect(localhost,u1,,test,MASTER_PORT,MASTER_SOCKET);
|
2016-03-25 17:51:22 +01:00
|
|
|
connect fail,localhost,u1;
|
2013-01-25 09:41:26 +01:00
|
|
|
ERROR HY000: Plugin 'bar' is not loaded
|
|
|
|
connect(localhost,u2,,test,MASTER_PORT,MASTER_SOCKET);
|
2016-03-25 17:51:22 +01:00
|
|
|
connect fail,localhost,u2;
|
2013-01-25 09:41:26 +01:00
|
|
|
ERROR 28000: Access denied for user 'u2'@'localhost' (using password: NO)
|
|
|
|
connect(localhost,u2,password,test,MASTER_PORT,MASTER_SOCKET);
|
2016-03-25 17:51:22 +01:00
|
|
|
connect fail,localhost,u2,password;
|
2013-01-25 09:41:26 +01:00
|
|
|
ERROR 28000: Access denied for user 'u2'@'localhost' (using password: YES)
|
|
|
|
ERROR HY000: Plugin 'bar' is not loaded
|
|
|
|
ERROR 28000: Access denied for user 'u2'@'localhost' (using password: NO)
|
|
|
|
ERROR 28000: Access denied for user 'u2'@'localhost' (using password: YES)
|
|
|
|
delete from mysql.user where plugin = 'bar';
|
|
|
|
flush privileges;
|