2022-08-15 16:12:17 +00:00
|
|
|
|
2022-08-16 10:53:59 +00:00
|
|
|
CREATE TABLE `util`.`binlogQueue`(
|
2022-08-16 09:45:25 +00:00
|
|
|
`code` VARCHAR(255) NOT NULL,
|
|
|
|
`logName` VARCHAR(255) NOT NULL,
|
|
|
|
`position` BIGINT UNSIGNED NOT NULL,
|
|
|
|
PRIMARY KEY (`code`)
|
2022-08-15 16:12:17 +00:00
|
|
|
) ENGINE = InnoDB;
|
|
|
|
|
2022-08-16 09:45:25 +00:00
|
|
|
CREATE USER 'zongji'@'%' IDENTIFIED BY 'password';
|
2022-08-15 16:12:17 +00:00
|
|
|
GRANT REPLICATION SLAVE, REPLICATION CLIENT, SELECT ON *.* TO 'zongji'@'%';
|
|
|
|
|
2022-08-16 10:53:59 +00:00
|
|
|
GRANT INSERT, DELETE ON `util`.* TO 'zongji'@'%';
|