You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
4
+
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.
5
+
[connection master]
6
+
# This corresponds to CREATE USER foo@localhost IDENTIFIED BY 'bar'
7
+
# But because of the salt we peg the whole hash instead.
8
+
CREATE USER foo@localhost IDENTIFIED WITH 'caching_sha2_password' AS 0x244124303035240C4D7A6D25436F2C0A08515310644615383E2A123961484C6276734178425A446172436B58446A582F6178544A692E6F644E4F2F4E596E666276454B563336 PASSWORD HISTORY DEFAULT;
9
+
include/sync_slave_sql_with_master.inc
10
+
[On Slave]
11
+
# The statement should be printed without the hex, according to the default value for the option
12
+
include/show_binlog_events.inc
13
+
Log_name Pos Event_type Server_id End_log_pos Info
14
+
slave-bin.000001 # Query # # use `test`; CREATE USER 'foo'@'localhost' IDENTIFIED WITH 'caching_sha2_password' AS '$A$005$Mzm%Co,\nQSdF8>*9aHLbvsAxBZDarCkXDjX/axTJi.odNO/NYnfbvEKV36' PASSWORD HISTORY DEFAULT
--echo # This corresponds to CREATE USER foo@localhost IDENTIFIED BY 'bar'
7
+
--echo # But because of the salt we peg the whole hash instead.
8
+
CREATE USER foo@localhost IDENTIFIED WITH 'caching_sha2_password' AS 0x244124303035240C4D7A6D25436F2C0A08515310644615383E2A123961484C6276734178425A446172436B58446A582F6178544A692E6F644E4F2F4E596E666276454B563336 PASSWORD HISTORY DEFAULT;
9
+
10
+
--source include/sync_slave_sql_with_master.inc
11
+
--echo [On Slave]
12
+
--echo # The statement should be printed without the hex, according to the default value for the option
0 commit comments