14 lines
442 B
SQL
14 lines
442 B
SQL
|
|
CREATE TABLE `util`.`binlogQueue`(
|
|
`code` VARCHAR(255) NOT NULL,
|
|
`logName` VARCHAR(255) NOT NULL,
|
|
`position` BIGINT UNSIGNED NOT NULL,
|
|
PRIMARY KEY (`code`)
|
|
) ENGINE = InnoDB;
|
|
|
|
CREATE USER 'mycdc-producer'@'%' IDENTIFIED BY 'P4$$w0rd';
|
|
GRANT REPLICATION SLAVE, REPLICATION CLIENT, SELECT ON *.* TO 'mycdc-producer'@'%';
|
|
GRANT INSERT, DELETE ON `util`.* TO 'mycdc-producer'@'%';
|
|
|
|
CREATE USER 'mycdc-producer'@'%' IDENTIFIED BY 'P4$$w0rd';
|