config root man

Current Path : /home/usr.opt/mysql57/mysql-test/suite/rpl/r/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //home/usr.opt/mysql57/mysql-test/suite/rpl/r/rpl_user_if_exists.result

include/master-slave.inc
Warnings:
Note	####	Sending passwords in plain text without SSL/TLS is extremely insecure.
Note	####	Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
[connection master]
[On Master]
#
#
[On Master]
# No users exist:
call mtr.add_suppression('Corresponding entry in binary log used default authentication.*');
DROP USER IF EXISTS wl8540@nohost1, wl8540@nohost2;
Warnings:
Note	3162	User 'wl8540'@'nohost1' does not exist.
Note	3162	User 'wl8540'@'nohost2' does not exist.
SELECT COUNT(*) FROM mysql.user WHERE user = 'wl8540';
COUNT(*)
0
ALTER USER IF EXISTS wl8540@nohost1, wl8540@nohost2 ACCOUNT LOCK;
Warnings:
Note	3162	User 'wl8540'@'nohost1' does not exist.
Note	3162	User 'wl8540'@'nohost2' does not exist.
SELECT COUNT(*) FROM mysql.user WHERE user = 'wl8540';
COUNT(*)
0
CREATE USER IF NOT EXISTS wl8540@nohost1, wl8540@nohost2;
SELECT COUNT(*) FROM mysql.user WHERE user = 'wl8540';
COUNT(*)
2
include/sync_slave_sql_with_master.inc
[On Slave]
SELECT COUNT(*) FROM mysql.user WHERE user = 'wl8540';
COUNT(*)
2
[On Master]
# All users exist:
ALTER USER IF EXISTS wl8540@nohost1, wl8540@nohost2 ACCOUNT LOCK;
SELECT COUNT(*) FROM mysql.user WHERE user = 'wl8540';
COUNT(*)
2
CREATE USER IF NOT EXISTS wl8540@nohost1, wl8540@nohost2;
Warnings:
Note	3163	User 'wl8540'@'nohost1' already exists.
Note	3163	User 'wl8540'@'nohost2' already exists.
SELECT COUNT(*) FROM mysql.user WHERE user = 'wl8540';
COUNT(*)
2
DROP USER IF EXISTS wl8540@nohost1, wl8540@nohost2;
SELECT COUNT(*) FROM mysql.user WHERE user = 'wl8540';
COUNT(*)
0
include/sync_slave_sql_with_master.inc
[On Slave]
SELECT COUNT(*) FROM mysql.user WHERE user = 'wl8540';
COUNT(*)
0
[On Master]
CREATE USER wl8540@nohost1;
DROP USER IF EXISTS wl8540@nohost1, wl8540@nohost2;
Warnings:
Note	3162	User 'wl8540'@'nohost2' does not exist.
SELECT COUNT(*) FROM mysql.user WHERE user = 'wl8540';
COUNT(*)
0
ALTER USER IF EXISTS wl8540@nohost1, wl8540@nohost2 ACCOUNT LOCK;
Warnings:
Note	3162	User 'wl8540'@'nohost1' does not exist.
Note	3162	User 'wl8540'@'nohost2' does not exist.
SELECT COUNT(*) FROM mysql.user WHERE user = 'wl8540';
COUNT(*)
0
CREATE USER IF NOT EXISTS wl8540@nohost1, wl8540@nohost2;
SELECT COUNT(*) FROM mysql.user WHERE user = 'wl8540';
COUNT(*)
2
include/sync_slave_sql_with_master.inc
[On Slave]
SELECT COUNT(*) FROM mysql.user WHERE user = 'wl8540';
COUNT(*)
2
CREATE USER IF NOT EXISTS slave_user1@localhost
IDENTIFIED WITH 'mysql_native_password' BY 'auth_string#%y';
CREATE USER IF NOT EXISTS slave_user2@localhost;
[On MASTER]
CREATE USER IF NOT EXISTS slave_user1@localhost
IDENTIFIED WITH 'mysql_native_password' BY 'auth_string#%y';
ALTER USER IF EXISTS slave_user2@localhost
IDENTIFIED WITH 'sha256_password' WITH MAX_CONNECTIONS_PER_HOUR 2;
Warnings:
Note	3162	User 'slave_user2'@'localhost' does not exist.
DROP USER IF EXISTS slave_user2@localhost;
Warnings:
Note	3162	User 'slave_user2'@'localhost' does not exist.
DROP USER IF EXISTS wl8540@nohost1, wl8540@nohost2,
slave_user1@localhost,slave_user2@localhost;
Warnings:
Note	3162	User 'slave_user2'@'localhost' does not exist.
FLUSH PRIVILEGES;
include/sync_slave_sql_with_master.inc
# Search warnings in the server log
WL11144: Check that ALTER/CREATE/DROP USER IF [NOT] EXISTS will succesfully replicate in multi user scenarios
[connection master]
# All users exist on master, some on slave
CREATE USER u1,u2;
set @@session.sql_log_bin=0;
CREATE USER u3,u4;
set @@session.sql_log_bin=1;
ALTER USER IF EXISTS u1, u2, u3, u4 ACCOUNT LOCK;
CREATE USER IF NOT EXISTS u1, u2, u3, u4;
Warnings:
Note	3163	User 'u1'@'%' already exists.
Note	3163	User 'u2'@'%' already exists.
Note	3163	User 'u3'@'%' already exists.
Note	3163	User 'u4'@'%' already exists.
DROP USER u1, u2, u3, u4;
CREATE USER u1,u2;
set @@session.sql_log_bin=0;
CREATE USER u3,u4;
set @@session.sql_log_bin=1;
DROP USER IF EXISTS u1, u2, u3, u4;
include/sync_slave_sql_with_master.inc
# All users exist on master, none on slave
[connection master]
set @@session.sql_log_bin=0;
CREATE USER u1,u2,u3,u4;
set @@session.sql_log_bin=1;
ALTER USER IF EXISTS u1, u2, u3, u4 ACCOUNT LOCK;
CREATE USER IF NOT EXISTS u1, u2, u3, u4;
Warnings:
Note	3163	User 'u1'@'%' already exists.
Note	3163	User 'u2'@'%' already exists.
Note	3163	User 'u3'@'%' already exists.
Note	3163	User 'u4'@'%' already exists.
DROP USER u1, u2, u3, u4;
set @@session.sql_log_bin=0;
CREATE USER u1,u2,u3,u4;
set @@session.sql_log_bin=1;
DROP USER IF EXISTS u1, u2, u3, u4;
include/sync_slave_sql_with_master.inc
# Some users exist on master, others on slave
[connection master]
set @@session.sql_log_bin=0;
CREATE USER u3,u4;
set @@session.sql_log_bin=1;
include/sync_slave_sql_with_master.inc
CREATE USER u1,u2;
[connection master]
ALTER USER IF EXISTS u1, u2, u3, u4 ACCOUNT LOCK;
Warnings:
Note	3162	User 'u1'@'%' does not exist.
Note	3162	User 'u2'@'%' does not exist.
CREATE USER IF NOT EXISTS u1, u2, u3, u4;
Warnings:
Note	3163	User 'u3'@'%' already exists.
Note	3163	User 'u4'@'%' already exists.
set @@session.sql_log_bin=0;
DROP USER u1,u2;
set @@session.sql_log_bin=1;
include/sync_slave_sql_with_master.inc
DROP USER u3,u4;
[connection master]
DROP USER IF EXISTS u1, u2, u3, u4;
Warnings:
Note	3162	User 'u1'@'%' does not exist.
Note	3162	User 'u2'@'%' does not exist.
# Some users exist on master, all on slave
include/sync_slave_sql_with_master.inc
CREATE USER u1,u2;
[connection master]
CREATE USER u3,u4;
ALTER USER IF EXISTS u1, u2, u3, u4 ACCOUNT LOCK;
Warnings:
Note	3162	User 'u1'@'%' does not exist.
Note	3162	User 'u2'@'%' does not exist.
CREATE USER IF NOT EXISTS u1, u2, u3, u4;
Warnings:
Note	3163	User 'u3'@'%' already exists.
Note	3163	User 'u4'@'%' already exists.
set sql_log_bin=0;
DROP USER u1,u2;
set sql_log_bin=1;
DROP USER IF EXISTS u1, u2, u3, u4;
Warnings:
Note	3162	User 'u1'@'%' does not exist.
Note	3162	User 'u2'@'%' does not exist.
include/sync_slave_sql_with_master.inc
# Some users exist on master, none on slave
[connection master]
set @@session.sql_log_bin=0;
CREATE USER u3,u4;
set @@session.sql_log_bin=1;
ALTER USER IF EXISTS u1, u2, u3, u4 ACCOUNT LOCK;
Warnings:
Note	3162	User 'u1'@'%' does not exist.
Note	3162	User 'u2'@'%' does not exist.
CREATE USER IF NOT EXISTS u1, u2, u3, u4;
Warnings:
Note	3163	User 'u3'@'%' already exists.
Note	3163	User 'u4'@'%' already exists.
DROP USER u1, u2, u3, u4;
set @@session.sql_log_bin=0;
CREATE USER u3,u4;
set @@session.sql_log_bin=1;
DROP USER IF EXISTS u1, u2, u3, u4;
Warnings:
Note	3162	User 'u1'@'%' does not exist.
Note	3162	User 'u2'@'%' does not exist.
# No users exist on master, some on slave
include/sync_slave_sql_with_master.inc
CREATE USER u3,u4;
[connection master]
ALTER USER IF EXISTS u1, u2, u3, u4 ACCOUNT LOCK;
Warnings:
Note	3162	User 'u1'@'%' does not exist.
Note	3162	User 'u2'@'%' does not exist.
Note	3162	User 'u3'@'%' does not exist.
Note	3162	User 'u4'@'%' does not exist.
CREATE USER IF NOT EXISTS u1, u2, u3, u4;
DROP USER u1, u2;
set @@session.sql_log_bin=0;
DROP USER u3,u4;
set @@session.sql_log_bin=1;
DROP USER IF EXISTS u1, u2, u3, u4;
Warnings:
Note	3162	User 'u1'@'%' does not exist.
Note	3162	User 'u2'@'%' does not exist.
Note	3162	User 'u3'@'%' does not exist.
Note	3162	User 'u4'@'%' does not exist.
# No users exist on master, all on slave
include/sync_slave_sql_with_master.inc
CREATE USER u1,u2,u3,u4;
[connection master]
ALTER USER IF EXISTS u1, u2, u3, u4 ACCOUNT LOCK;
Warnings:
Note	3162	User 'u1'@'%' does not exist.
Note	3162	User 'u2'@'%' does not exist.
Note	3162	User 'u3'@'%' does not exist.
Note	3162	User 'u4'@'%' does not exist.
CREATE USER IF NOT EXISTS u1, u2, u3, u4;
set @@session.sql_log_bin=0;
DROP USER u1, u2, u3, u4;
set @@session.sql_log_bin=1;
DROP USER IF EXISTS u1, u2, u3, u4;
Warnings:
Note	3162	User 'u1'@'%' does not exist.
Note	3162	User 'u2'@'%' does not exist.
Note	3162	User 'u3'@'%' does not exist.
Note	3162	User 'u4'@'%' does not exist.
CREATE USER IF NOT EXISTS u1 PASSWORD EXPIRE INTERVAL 66666 DAY;
ERROR HY000: Incorrect DAY value: '66666'
ALTER USER IF EXISTS u1 PASSWORD EXPIRE INTERVAL 66666 DAY;
ERROR HY000: Incorrect DAY value: '66666'
CREATE USER IF NOT EXISTS u1 PASSWORD EXPIRE INTERVAL 66666888888888888888 DAY;
ERROR 42000: Only integers allowed as number here near '66666888888888888888 DAY' at line 1
ALTER USER IF EXISTS u1 PASSWORD EXPIRE INTERVAL 66666888888888888888 DAY;
ERROR 42000: Only integers allowed as number here near '66666888888888888888 DAY' at line 1
include/assert.inc [assert that the above Event has not been added to binlog]
include/assert.inc [assert that the GTID has not been generated]
CREATE USER u3 IDENTIFIED WITH 'mysql_native_password';
CREATE USER IF NOT EXISTS u1 IDENTIFIED WITH 'shsh',u2 IDENTIFIED WITH 'sha256_password',u3 IDENTIFIED WITH 'sha256_password';
ERROR HY000: Plugin 'shsh' is not loaded
include/sync_slave_sql_with_master.inc
include/assert.inc [assert that u3's auth_plugin has not changed]
[connection master]
DROP USER u2;
CREATE USER u1;
CREATE USER IF NOT EXISTS u1 IDENTIFIED WITH 'shsh',u2 IDENTIFIED BY 'pass',u3 IDENTIFIED WITH 'sha256_password';
ERROR HY000: Plugin 'shsh' is not loaded
include/sync_slave_sql_with_master.inc
include/assert.inc [assert that u3's auth_plugin has not changed]
[connection master]
ALTER USER IF EXISTS u1 IDENTIFIED WITH 'shsh',u2 IDENTIFIED BY 'xyz',u3 IDENTIFIED WITH 'sha256_password';
ERROR HY000: Plugin 'shsh' is not loaded
include/sync_slave_sql_with_master.inc
include/assert.inc [assert that u3's auth_plugin has been changed by alter]
[connection master]
DROP USER u1,u2,u3;
include/rpl_end.inc

Man Man