mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
P_S 5.7.28
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
set @orig_sql_mode= @@sql_mode;
|
||||
set sql_mode= (select replace(@@sql_mode,'NO_AUTO_CREATE_USER',''));
|
||||
Warnings:
|
||||
Warning 3090 Changing sql mode 'NO_AUTO_CREATE_USER' is deprecated. It will be removed in a future release.
|
||||
show grants;
|
||||
Grants for root@localhost
|
||||
GRANT ALL PRIVILEGES ON *.* TO `root`@`localhost` WITH GRANT OPTION
|
||||
@ -6,10 +10,14 @@ create user 'pfs_user_1'@localhost;
|
||||
create user 'pfs_user_2'@localhost;
|
||||
create user 'pfs_user_3'@localhost;
|
||||
grant ALL on *.* to 'pfs_user_1'@localhost with GRANT OPTION;
|
||||
Warnings:
|
||||
Warning 1287 Using GRANT for creating new user is deprecated and will be removed in future release. Create new user with CREATE USER statement.
|
||||
grant ALL on performance_schema.* to 'pfs_user_2'@localhost
|
||||
with GRANT OPTION;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant CREATE on performance_schema.* to 'pfs_user_2'@localhost;
|
||||
Warnings:
|
||||
Warning 1287 Using GRANT for creating new user is deprecated and will be removed in future release. Create new user with CREATE USER statement.
|
||||
grant DROP on performance_schema.* to 'pfs_user_2'@localhost;
|
||||
grant REFERENCES on performance_schema.* to 'pfs_user_2'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
@ -42,6 +50,8 @@ grant ALL on performance_schema.setup_instruments to 'pfs_user_3'@localhost
|
||||
with GRANT OPTION;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant CREATE on performance_schema.setup_instruments to 'pfs_user_3'@localhost;
|
||||
Warnings:
|
||||
Warning 1287 Using GRANT for creating new user is deprecated and will be removed in future release. Create new user with CREATE USER statement.
|
||||
grant DROP on performance_schema.setup_instruments to 'pfs_user_3'@localhost;
|
||||
grant REFERENCES on performance_schema.setup_instruments to 'pfs_user_3'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
@ -595,3 +605,14 @@ UPDATE performance_schema.setup_consumers SET enabled = 'YES';
|
||||
UPDATE performance_schema.setup_timers SET timer_name = 'MICROSECOND' where name="idle";
|
||||
UPDATE performance_schema.setup_timers SET timer_name = 'NANOSECOND' where name="stage";
|
||||
UPDATE performance_schema.setup_timers SET timer_name = 'NANOSECOND' where name="statement";
|
||||
set sql_mode= @orig_sql_mode;
|
||||
Warnings:
|
||||
Warning 3090 Changing sql mode 'NO_AUTO_CREATE_USER' is deprecated. It will be removed in a future release.
|
||||
#
|
||||
# WL#2284: Increase the length of a user name
|
||||
#
|
||||
CREATE USER 'user_name_len_22_01234'@localhost;
|
||||
GRANT ALL ON performance_schema.* TO 'user_name_len_22_01234'@localhost with GRANT OPTION;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
REVOKE ALL PRIVILEGES, GRANT OPTION FROM 'user_name_len_22_01234'@localhost;
|
||||
DROP USER 'user_name_len_22_01234'@localhost;
|
||||
|
Reference in New Issue
Block a user