Skip to content

Commit 285807c

Browse files
committed
WL#16567: Deprecate FLUSH PRIVILEGES and FLUSH_PRIVILEGES privilege.
1. add a deprecation warning to the FLUSH PRIVILEGES command 2. mark the FLUSH_PRIVILEGES privilege as deprecated 3. mysqladmin flush-privileges & reload will trigger a deprection warning 4. mysqld keeps flushing privs on sighup and no warning is printed 5. upgrade doesn't grant FLUSH_PRIVILEGES to RELOAD holders 6. GRANT/REVOKE ALL adds FLUSH_PRIVILEGES as it used to 7. tests amended 8. Made the deprecated dynamic privileges code do as follows: 8.1: no deprecation warning is issued at startup/FLUSH PRIVILEGES 8.2: the derecated dynamic privileges are granted as part of GRANT ALL 8.3: the deprecated dynamic privileges are revoked as part of REVOKE ALL 8.4: no deprecation warning is issued at GRANT REVOKE if ALL is present clang-tidy reports addressed Change-Id: I0e6cb757b86eb89166ecf1579bef55fff1143ca0
1 parent 4602161 commit 285807c

File tree

291 files changed

+1516
-37
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

291 files changed

+1516
-37
lines changed

client/mysqladmin.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,15 @@ static int execute_commands(MYSQL *mysql, int argc, char **argv) {
741741
break;
742742
}
743743
case ADMIN_FLUSH_PRIVILEGES:
744+
CLIENT_WARN_DEPRECATED_NO_REPLACEMENT("flush-privileges");
745+
if (0 != mysql_query(mysql, "flush privileges")) {
746+
my_printf_error(0, "reload failed; error: '%s'", error_flags,
747+
mysql_error(mysql));
748+
return -1;
749+
}
750+
break;
744751
case ADMIN_RELOAD:
752+
CLIENT_WARN_DEPRECATED_NO_REPLACEMENT("reload");
745753
if (mysql_query(mysql, "flush privileges")) {
746754
my_printf_error(0, "reload failed; error: '%s'", error_flags,
747755
mysql_error(mysql));

mysql-test/r/auth_rpl.result

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ include/rpl/stop_replica.inc
99
CREATE USER 'plug_user' IDENTIFIED WITH 'test_plugin_server' AS 'plug_user';
1010
GRANT REPLICATION SLAVE ON *.* TO plug_user;
1111
FLUSH PRIVILEGES;
12+
Warnings:
13+
Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
1214
[connection slave]
1315
CHANGE REPLICATION SOURCE TO
1416
SOURCE_USER= 'plug_user',

mysql-test/r/connect.result

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ last_t1()
240240
# must not throw an error
241241
CALL test_t1(last_t1() + 1);
242242
FLUSH PRIVILEGES;
243+
Warnings:
244+
Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
243245
# existing connections continue as before even after flush
244246
# must not throw an error
245247
SELECT USER();
@@ -278,6 +280,8 @@ N
278280
UPDATE mysql.user SET password_expired='Y'
279281
WHERE user='must_change' and host = 'localhost';
280282
FLUSH PRIVILEGES;
283+
Warnings:
284+
Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
281285
SELECT USER();
282286
ERROR HY000: You must reset your password using ALTER USER statement before executing this statement.
283287
SELECT last_t1();

mysql-test/r/disconnect_on_expired_password_off.result

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ GRANT ALL ON *.* TO 'bernt' WITH GRANT OPTION;
2727
ALTER USER 'bernt' PASSWORD EXPIRE;
2828
# Doing something should connect but fail
2929
mysqladmin: [Warning] Using a password on the command line interface can be insecure.
30+
WARNING: reload is deprecated and will be removed in a future version
3031
mysqladmin: reload failed; error: 'You must reset your password using ALTER USER statement before executing this statement.'
3132
# Setting password should succeed
3233
mysqladmin: [Warning] Using a password on the command line interface can be insecure.

mysql-test/r/errors.result

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ INSERT INTO t1 VALUES (1),(2);
181181
CREATE FUNCTION f() RETURNS INT RETURN 1;
182182
GRANT FILE ON *.* TO 'nopriv_user'@'localhost';
183183
FLUSH PRIVILEGES;
184+
Warnings:
185+
Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
184186
connection: con1
185187
SELECT MAX(key1) FROM t1 WHERE f() < 1 INTO OUTFILE '<outfile>';
186188
ERROR 42000: execute command denied to user 'nopriv_user'@'localhost' for routine 'test.f'

mysql-test/r/flush_privileges_sql_mode.result

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ Grants for u2b35380295@%
2525
GRANT EXECUTE ON PROCEDURE `db35380295`.`p35380295` TO `u2b35380295`@`%`
2626
GRANT USAGE ON *.* TO `u2b35380295`@`%`
2727
FLUSH PRIVILEGES;
28+
Warnings:
29+
Warning 1681 'FLUSH PRIVILEGES' is deprecated and will be removed in a future release.
2830
# test: should be the same as the previous SHOW
2931
SHOW GRANTS FOR u2b35380295;
3032
Grants for u2b35380295@%

mysql-test/r/grant.result

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

@@ -2499,6 +2565,8 @@ SELECT (SELECT now()-(SELECT password_last_changed from mysql.user where user='w
24992565
1
25002566
UPDATE mysql.user SET password_last_changed = (now() - INTERVAL 3 DAY) where user='wl7131';
25012567
FLUSH 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
25032571
mysql: [Warning] Using a password on the command line interface can be insecure.
25042572
Please use --connect-expired-password option or invoke mysql in interactive mode.
@@ -2526,6 +2594,8 @@ password_lifetime
25262594
0
25272595
UPDATE mysql.user SET password_last_changed = (now() - INTERVAL 5 DAY) where user='wl7131';
25282596
FLUSH 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.
25302600
mysql: [Warning] Using a password on the command line interface can be insecure.
25312601
ALTER USER 'wl7131' PASSWORD EXPIRE DEFAULT;

0 commit comments

Comments
 (0)