48 lines
2.1 KiB
Plaintext
48 lines
2.1 KiB
Plaintext
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]
|
|
DROP PROCEDURE IF EXISTS test.p1;
|
|
DROP TABLE IF EXISTS test.t2;
|
|
CREATE TABLE test.t1 (a INT,PRIMARY KEY(a));
|
|
CREATE TABLE test.t2 (a INT,PRIMARY KEY(a));
|
|
INSERT INTO test.t1 VALUES(1),(2);
|
|
CREATE PROCEDURE test.p1()
|
|
BEGIN
|
|
SELECT SQL_CALC_FOUND_ROWS * FROM test.t1 LIMIT 1;
|
|
INSERT INTO test.t2 VALUES(FOUND_ROWS());
|
|
END|
|
|
Warnings:
|
|
Warning 1287 SQL_CALC_FOUND_ROWS is deprecated and will be removed in a future release. Consider using two separate queries instead.
|
|
Warning 1287 FOUND_ROWS() is deprecated and will be removed in a future release. Consider using COUNT(*) instead.
|
|
Warnings:
|
|
Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
|
|
|
|
< ---- Master selects-- >
|
|
-------------------------
|
|
Warnings:
|
|
Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
|
|
CALL test.p1();
|
|
a
|
|
1
|
|
SELECT * FROM test.t2;
|
|
a
|
|
2
|
|
Warnings:
|
|
Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
|
|
|
|
< ---- Slave selects-- >
|
|
------------------------
|
|
Warnings:
|
|
Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
|
|
include/sync_slave_sql_with_master.inc
|
|
SELECT * FROM test.t2;
|
|
a
|
|
2
|
|
DROP PROCEDURE IF EXISTS test.p1;
|
|
DROP TABLE IF EXISTS test.t1;
|
|
DROP TABLE IF EXISTS test.t2;
|
|
include/sync_slave_sql_with_master.inc
|
|
include/rpl_end.inc
|