1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-23 08:45:18 +03:00
Files
mariadb/mysql-test/main/empty_user_table.result
Sergei Golubchik 2144dc1ff2 more verbose tests
2020-04-27 09:22:36 +02:00

17 lines
552 B
Plaintext

create table t1 as select * from mysql.global_priv;
truncate table mysql.global_priv;
flush privileges;
connect(localhost,u1,,test,MASTER_PORT,MASTER_SOCKET);
connect fail,localhost,u1;
Got one of the listed errors
insert mysql.global_priv select * from t1;
drop table t1;
flush privileges;
# switching from mysql.global_priv to mysql.user
truncate table mysql.user;
flush privileges;
connect(localhost,u1,,test,MASTER_PORT,MASTER_SOCKET);
connect fail,localhost,u1;
Got one of the listed errors
# switching back from mysql.user to mysql.global_priv