@@ -14,6 +14,8 @@ Grants for mysqltest_1@localhost
1414GRANT USAGE ON *.* TO `mysqltest_1`@`localhost`
1515GRANT CREATE TEMPORARY TABLES, LOCK TABLES ON `mysqltest`.* TO `mysqltest_1`@`localhost`
1616flush privileges;
17+ Warnings:
18+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
1719show grants for mysqltest_1@localhost;
1820Grants for mysqltest_1@localhost
1921GRANT USAGE ON *.* TO `mysqltest_1`@`localhost`
@@ -25,6 +27,8 @@ GRANT USAGE ON *.* TO `mysqltest_1`@`localhost`
2527GRANT LOCK TABLES ON `mysqltest`.* TO `mysqltest_1`@`localhost`
2628grant ALL PRIVILEGES on mysqltest.* to mysqltest_1@localhost with GRANT OPTION;
2729flush privileges;
30+ Warnings:
31+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
2832SHOW GRANTS FOR mysqltest_1@localhost;
2933Grants for mysqltest_1@localhost
3034GRANT USAGE ON *.* TO `mysqltest_1`@`localhost`
@@ -37,6 +41,8 @@ GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, CREATE TE
3741revoke all privileges on mysqltest.* from mysqltest_1@localhost;
3842drop user mysqltest_1@localhost;
3943flush privileges;
44+ Warnings:
45+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
4046create user mysqltest_1@localhost;
4147grant usage on test.* to mysqltest_1@localhost with grant option;
4248show grants for mysqltest_1@localhost;
@@ -48,6 +54,8 @@ delete from mysql.db where user='mysqltest_1';
4854delete from mysql.tables_priv where user='mysqltest_1';
4955delete from mysql.columns_priv where user='mysqltest_1';
5056flush privileges;
57+ Warnings:
58+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
5159show grants for mysqltest_1@localhost;
5260ERROR 42000: There is no such grant defined for user 'mysqltest_1' on host 'localhost'
5361create user mysqltest_1@localhost;
@@ -101,6 +109,8 @@ delete from mysql.db where user='mysqltest_1' or user="mysqltest_2" or user="mys
101109delete from mysql.tables_priv where user='mysqltest_1' or user="mysqltest_2" or user="mysqltest_3";
102110delete from mysql.columns_priv where user='mysqltest_1' or user="mysqltest_2" or user="mysqltest_3";
103111flush privileges;
112+ Warnings:
113+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
104114drop table t1;
105115create user mysqltest_1@localhost;
106116create table t1 (abcdefghijklmnopqrstuvwxyz int);
@@ -130,6 +140,8 @@ alter table mysql.db order by db asc;
130140Warnings:
131141Warning 1105 ORDER BY ignored as there is a user-defined clustered index in the table 'db'
132142flush privileges;
143+ Warnings:
144+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
133145show grants for test11@localhost;
134146Grants for test11@localhost
135147GRANT USAGE ON *.* TO `test11`@`localhost`
@@ -139,6 +151,8 @@ alter table mysql.db order by db desc;
139151Warnings:
140152Warning 1105 ORDER BY ignored as there is a user-defined clustered index in the table 'db'
141153flush privileges;
154+ Warnings:
155+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
142156show grants for test11@localhost;
143157Grants for test11@localhost
144158GRANT USAGE ON *.* TO `test11`@`localhost`
@@ -154,6 +168,8 @@ host db user select_priv insert_priv
154168delete from mysql.user where user='test6123';
155169drop database mysqltest1;
156170flush privileges;
171+ Warnings:
172+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
157173create user drop_user@localhost, drop_user2@localhost;
158174create table t1 (a int);
159175grant ALL PRIVILEGES on *.* to drop_user2@localhost with GRANT OPTION;
@@ -408,6 +424,8 @@ grant all on mysqltest_2.* to mysqltest_3@localhost;
408424grant select on *.* to mysqltest_3@localhost;
409425grant select on mysqltest_2.t1 to mysqltest_3@localhost;
410426flush privileges;
427+ Warnings:
428+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
411429use mysqltest_1;
412430update mysqltest_2.t1, mysqltest_2.t2 set c=500,d=600;
413431update mysqltest_1.t1, mysqltest_1.t2 set a=100,b=200;
@@ -431,6 +449,8 @@ delete from mysql.tables_priv where user="mysqltest_3";
431449delete from mysql.columns_priv where user="mysqltest_3";
432450delete from mysql.global_grants where user="mysqltest_3";
433451flush privileges;
452+ Warnings:
453+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
434454drop database mysqltest_1;
435455drop database mysqltest_2;
436456SHOW PRIVILEGES;
@@ -537,6 +557,8 @@ TABLE_SCHEMA TABLE_NAME PRIVILEGES
537557mysqltest dummytable ALTER, CREATE, CREATE VIEW, DELETE, DROP, INDEX, INSERT, REFERENCES, SELECT, SHOW VIEW, TRIGGER, UPDATE
538558mysqltest dummyview ALTER, CREATE, CREATE VIEW, DELETE, DROP, INDEX, INSERT, REFERENCES, SELECT, SHOW VIEW, TRIGGER, UPDATE
539559FLUSH PRIVILEGES;
560+ Warnings:
561+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
540562SHOW GRANTS FOR dummy@localhost;
541563Grants for dummy@localhost
542564GRANT ALL PRIVILEGES ON `mysqltest`.`dummytable` TO `dummy`@`localhost`
@@ -581,6 +603,8 @@ TABLE_SCHEMA TABLE_NAME PRIVILEGES
581603mysqltest dummytable CREATE VIEW
582604mysqltest dummyview CREATE VIEW
583605FLUSH PRIVILEGES;
606+ Warnings:
607+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
584608SHOW GRANTS FOR dummy@localhost;
585609Grants for dummy@localhost
586610GRANT CREATE VIEW ON `mysqltest`.`dummytable` TO `dummy`@`localhost`
@@ -615,6 +639,8 @@ TABLE_SCHEMA TABLE_NAME PRIVILEGES
615639mysqltest dummytable SHOW VIEW
616640mysqltest dummyview SHOW VIEW
617641FLUSH PRIVILEGES;
642+ Warnings:
643+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
618644SHOW GRANTS FOR dummy@localhost;
619645Grants for dummy@localhost
620646GRANT SHOW VIEW ON `mysqltest`.`dummytable` TO `dummy`@`localhost`
@@ -633,8 +659,12 @@ DROP DATABASE mysqltest;
633659use mysql;
634660insert into tables_priv values ('','test_db','mysqltest_1','test_table','test_grantor',CURRENT_TIMESTAMP,'Select','Select');
635661flush privileges;
662+ Warnings:
663+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
636664delete from tables_priv where host = '' and user = 'mysqltest_1';
637665flush privileges;
666+ Warnings:
667+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
638668use test;
639669set @user123="non-existent";
640670select * from mysql.db where user=@user123;
@@ -652,6 +682,8 @@ GRANT <ALL_DYNAMIC_PRIVILEGES> ON *.* TO `root`@`localhost` WITH GRANT OPTION
652682GRANT SELECT ON `бд`.* TO `root`@`localhost`
653683GRANT PROXY ON ``@`` TO `root`@`localhost` WITH GRANT OPTION
654684flush privileges;
685+ Warnings:
686+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
655687SHOW GRANTS FOR root@localhost;
656688Grants for root@localhost
657689GRANT <ALL_STATIC_PRIVILEGES> ON *.* TO `root`@`localhost` WITH GRANT OPTION
@@ -692,6 +724,8 @@ delete from mysql.user where user='mysqltest1';
692724delete from mysql.db where user='mysqltest1';
693725delete from mysql.tables_priv where user='mysqltest1';
694726flush privileges;
727+ Warnings:
728+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
695729drop database mysqltest;
696730create database db27515;
697731use db27515;
@@ -710,6 +744,8 @@ create table t1 (a int);
710744create table t2 as select * from mysql.user where user='';
711745delete from mysql.user where user='';
712746flush privileges;
747+ Warnings:
748+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
713749create user mysqltest_8@'';
714750create user mysqltest_8;
715751create user mysqltest_8@host8;
@@ -759,6 +795,8 @@ select * from information_schema.schema_privileges
759795where grantee like "'mysqltest_8'%";
760796GRANTEE TABLE_CATALOG TABLE_SCHEMA PRIVILEGE_TYPE IS_GRANTABLE
761797flush privileges;
798+ Warnings:
799+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
762800show grants for mysqltest_8@'';
763801Grants for mysqltest_8@
764802GRANT USAGE ON *.* TO `mysqltest_8`@``
@@ -767,12 +805,16 @@ Grants for mysqltest_8@
767805GRANT USAGE ON *.* TO `mysqltest_8`@``
768806grant select on mysqltest.* to mysqltest_8@'';
769807flush privileges;
808+ Warnings:
809+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
770810show grants for mysqltest_8@;
771811Grants for mysqltest_8@
772812GRANT USAGE ON *.* TO `mysqltest_8`@``
773813GRANT SELECT ON `mysqltest`.* TO `mysqltest_8`@``
774814revoke select on mysqltest.* from mysqltest_8@'';
775815flush privileges;
816+ Warnings:
817+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
776818Column privileges
777819grant update (a) on t1 to mysqltest_8@'';
778820grant update (a) on t1 to mysqltest_8;
@@ -785,6 +827,8 @@ Grants for mysqltest_8@%
785827GRANT USAGE ON *.* TO `mysqltest_8`@`%`
786828GRANT UPDATE (`a`) ON `test`.`t1` TO `mysqltest_8`@`%`
787829flush privileges;
830+ Warnings:
831+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
788832show grants for mysqltest_8@'';
789833Grants for mysqltest_8@
790834GRANT USAGE ON *.* TO `mysqltest_8`@``
@@ -810,6 +854,8 @@ GRANT USAGE ON *.* TO `mysqltest_8`@`%`
810854select * from information_schema.column_privileges;
811855GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME PRIVILEGE_TYPE IS_GRANTABLE
812856flush privileges;
857+ Warnings:
858+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
813859show grants for mysqltest_8@'';
814860Grants for mysqltest_8@
815861GRANT USAGE ON *.* TO `mysqltest_8`@``
@@ -828,6 +874,8 @@ Grants for mysqltest_8@%
828874GRANT USAGE ON *.* TO `mysqltest_8`@`%`
829875GRANT UPDATE ON `test`.`t1` TO `mysqltest_8`@`%`
830876flush privileges;
877+ Warnings:
878+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
831879show grants for mysqltest_8@'';
832880Grants for mysqltest_8@
833881GRANT USAGE ON *.* TO `mysqltest_8`@``
@@ -853,6 +901,8 @@ GRANT USAGE ON *.* TO `mysqltest_8`@`%`
853901select * from information_schema.table_privileges where table_schema NOT IN ('sys','mysql');
854902GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PRIVILEGE_TYPE IS_GRANTABLE
855903flush privileges;
904+ Warnings:
905+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
856906show grants for mysqltest_8@'';
857907Grants for mysqltest_8@
858908GRANT USAGE ON *.* TO `mysqltest_8`@``
@@ -883,6 +933,8 @@ GRANTEE TABLE_CATALOG PRIVILEGE_TYPE IS_GRANTABLE
883933select * from t1;
884934a
885935flush privileges;
936+ Warnings:
937+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
886938SHOW GRANTS FOR mysqltest_8@'';
887939Grants for mysqltest_8@
888940GRANT USAGE ON *.* TO `mysqltest_8`@``
@@ -914,6 +966,8 @@ show grants for mysqltest_8@host8;
914966ERROR 42000: There is no such grant defined for user 'mysqltest_8' on host 'host8'
915967insert into mysql.user select * from t2;
916968flush privileges;
969+ Warnings:
970+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
917971drop table t2;
918972drop table t1;
919973CREATE DATABASE mysqltest3;
@@ -1256,6 +1310,8 @@ DROP TABLE t1;
12561310#
12571311CREATE TEMPORARY TABLE mysql.user (id INT);
12581312FLUSH PRIVILEGES;
1313+ Warnings:
1314+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
12591315DROP TABLE mysql.user;
12601316drop table if exists test;
12611317Warnings:
@@ -1579,6 +1635,8 @@ grant insert on mysqltest.t4 to mysqltest@localhost;
15791635grant create, insert on mysqltest.t5 to mysqltest@localhost;
15801636grant create, insert on mysqltest.t6 to mysqltest@localhost;
15811637flush privileges;
1638+ Warnings:
1639+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
15821640insert into t2 values (1);
15831641create table if not exists t1 select * from t2;
15841642ERROR 42000: INSERT command denied to user 'mysqltest'@'localhost' for table 't1'
@@ -1624,6 +1682,8 @@ CALL mysqltest1.test();
16241682DROP DATABASE mysqltest1;
16251683RENAME TABLE mysql.procs_gone TO mysql.procs_priv;
16261684FLUSH PRIVILEGES;
1685+ Warnings:
1686+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
16271687CREATE DATABASE dbbug33464;
16281688CREATE USER 'userbug33464'@'localhost';
16291689GRANT CREATE ROUTINE ON dbbug33464.* TO 'userbug33464'@'localhost';
@@ -1669,6 +1729,8 @@ GRANT CREATE ROUTINE ON db1.* TO 'user1'@'localhost';
16691729GRANT CREATE ON db1.* TO 'user2'@'%';
16701730GRANT CREATE ROUTINE ON db1.* TO 'user2'@'%';
16711731FLUSH PRIVILEGES;
1732+ Warnings:
1733+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
16721734SHOW GRANTS FOR 'user1'@'localhost';
16731735Grants for user1@localhost
16741736GRANT USAGE ON *.* TO `user1`@`localhost`
@@ -1772,6 +1834,8 @@ localhost myuser
17721834revoke select on Foo.* from myuser@localhost;
17731835delete from mysql.user where User='myuser';
17741836flush privileges;
1837+ Warnings:
1838+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
17751839#########################################################################
17761840#
17771841# Bug#38347: ALTER ROUTINE privilege allows SHOW CREATE TABLE.
@@ -1786,6 +1850,8 @@ DELETE FROM mysql.db WHERE User LIKE 'mysqltest_%';
17861850DELETE FROM mysql.tables_priv WHERE User LIKE 'mysqltest_%';
17871851DELETE FROM mysql.columns_priv WHERE User LIKE 'mysqltest_%';
17881852FLUSH PRIVILEGES;
1853+ Warnings:
1854+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
17891855CREATE DATABASE mysqltest_db1;
17901856CREATE TABLE mysqltest_db1.t1(a INT);
17911857
@@ -2499,6 +2565,8 @@ SELECT (SELECT now()-(SELECT password_last_changed from mysql.user where user='w
249925651
25002566UPDATE mysql.user SET password_last_changed = (now() - INTERVAL 3 DAY) where user='wl7131';
25012567FLUSH PRIVILEGES;
2568+ Warnings:
2569+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
25022570# Attempt to execute query should fail
25032571mysql: [Warning] Using a password on the command line interface can be insecure.
25042572Please use --connect-expired-password option or invoke mysql in interactive mode.
@@ -2526,6 +2594,8 @@ password_lifetime
252625940
25272595UPDATE mysql.user SET password_last_changed = (now() - INTERVAL 5 DAY) where user='wl7131';
25282596FLUSH PRIVILEGES;
2597+ Warnings:
2598+ Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
25292599# This should pass as password is never expired.
25302600mysql: [Warning] Using a password on the command line interface can be insecure.
25312601ALTER USER 'wl7131' PASSWORD EXPIRE DEFAULT;
0 commit comments