create table t1 as select * from mysql.user; truncate table mysql.user; flush privileges; connect(localhost,u1,,test,MASTER_PORT,MASTER_SOCKET); ERROR 28000: Access denied for user 'u1'@'localhost' (using password: NO) insert mysql.user select * from t1; drop table t1; flush privileges;