2020-02-06 02:24:44 +00:00
|
|
|
DROP USER IF EXISTS test_user_01075, test_user_01075_x, test_user_01075_x@localhost, test_user_01075_x@'192.168.23.15';
|
|
|
|
|
|
|
|
CREATE USER test_user_01075;
|
|
|
|
SHOW CREATE USER test_user_01075;
|
|
|
|
|
|
|
|
ALTER USER test_user_01075 HOST ANY;
|
|
|
|
SHOW CREATE USER test_user_01075;
|
|
|
|
|
|
|
|
ALTER USER test_user_01075 HOST NONE;
|
|
|
|
SHOW CREATE USER test_user_01075;
|
|
|
|
|
|
|
|
ALTER USER test_user_01075 HOST LOCAL;
|
|
|
|
SHOW CREATE USER test_user_01075;
|
|
|
|
|
|
|
|
ALTER USER test_user_01075 HOST IP '192.168.23.15';
|
|
|
|
SHOW CREATE USER test_user_01075;
|
|
|
|
|
|
|
|
ALTER USER test_user_01075 HOST IP '2001:0db8:11a3:09d7:1f34:8a2e:07a0:765d';
|
|
|
|
SHOW CREATE USER test_user_01075;
|
|
|
|
|
|
|
|
ALTER USER test_user_01075 ADD HOST IP '127.0.0.1';
|
|
|
|
SHOW CREATE USER test_user_01075;
|
|
|
|
|
2020-04-05 18:44:28 +00:00
|
|
|
ALTER USER test_user_01075 DROP HOST IP '2001:0db8:11a3:09d7:1f34:8a2e:07a0:765d';
|
2020-02-06 02:24:44 +00:00
|
|
|
SHOW CREATE USER test_user_01075;
|
|
|
|
|
2020-04-05 18:44:28 +00:00
|
|
|
ALTER USER test_user_01075 DROP HOST NAME 'localhost';
|
2020-02-06 02:24:44 +00:00
|
|
|
SHOW CREATE USER test_user_01075;
|
|
|
|
|
|
|
|
ALTER USER test_user_01075 HOST LIKE '@.somesite.com';
|
|
|
|
SHOW CREATE USER test_user_01075;
|
|
|
|
|
|
|
|
ALTER USER test_user_01075 HOST NAME REGEXP '.*\.anothersite\.com';
|
|
|
|
SHOW CREATE USER test_user_01075;
|
|
|
|
|
2020-03-29 23:22:06 +00:00
|
|
|
ALTER USER test_user_01075 HOST NAME REGEXP '.*\.anothersite\.com', '.*\.anothersite\.org';
|
|
|
|
SHOW CREATE USER test_user_01075;
|
|
|
|
|
|
|
|
ALTER USER test_user_01075 HOST NAME REGEXP '.*\.anothersite2\.com', NAME REGEXP '.*\.anothersite2\.org';
|
|
|
|
SHOW CREATE USER test_user_01075;
|
|
|
|
|
|
|
|
ALTER USER test_user_01075 HOST NAME REGEXP '.*\.anothersite3\.com' HOST NAME REGEXP '.*\.anothersite3\.org';
|
|
|
|
SHOW CREATE USER test_user_01075;
|
|
|
|
|
2020-02-06 02:24:44 +00:00
|
|
|
DROP USER test_user_01075;
|
|
|
|
|
|
|
|
CREATE USER test_user_01075_x@localhost;
|
|
|
|
SHOW CREATE USER test_user_01075_x@localhost;
|
|
|
|
|
2020-04-05 18:44:28 +00:00
|
|
|
ALTER USER test_user_01075_x@localhost RENAME TO test_user_01075_x@'%';
|
2020-02-06 02:24:44 +00:00
|
|
|
SHOW CREATE USER test_user_01075_x;
|
|
|
|
|
|
|
|
ALTER USER test_user_01075_x RENAME TO test_user_01075_x@'192.168.23.15';
|
|
|
|
SHOW CREATE USER 'test_user_01075_x@192.168.23.15';
|
|
|
|
|
|
|
|
DROP USER 'test_user_01075_x@192.168.23.15';
|