mirror of
https://github.com/MariaDB/server.git
synced 2025-12-07 17:42:39 +03:00
MDEV-17658 change the structure of mysql.user table
Implement User_table_json. Fix scripts to use mysql.global_priv. Fix tests.
This commit is contained in:
@@ -269,12 +269,10 @@ create table if not exists t3 like tt1;
|
||||
# the mysql database is replicated even when the current database is
|
||||
# 'mysql'.
|
||||
|
||||
--disable_warnings
|
||||
USE mysql;
|
||||
INSERT IGNORE INTO user SET host='localhost', user='@#@', password=password('Just a test');
|
||||
UPDATE user SET password=password('Another password') WHERE host='localhost' AND user='@#@';
|
||||
DELETE FROM user WHERE host='localhost' AND user='@#@';
|
||||
--enable_warnings
|
||||
INSERT db SET host='localhost', user='@#@', db='Just a test';
|
||||
UPDATE db SET db='Another db' WHERE host='localhost' AND user='@#@';
|
||||
DELETE FROM db WHERE host='localhost' AND user='@#@';
|
||||
|
||||
use test;
|
||||
source include/show_binlog_events.inc;
|
||||
|
||||
Reference in New Issue
Block a user