init-db.sql 362 B

1234567891011
  1. CREATE DATABASE IF NOT EXISTS xbrlgen;
  2. GRANT ALL ON xbrlgen.* TO 'root'@'%' IDENTIFIED BY 'dodol123';
  3. GRANT REPLICATION SLAVE ON *.* TO 'replica'@'%' IDENTIFIED BY 'duren123';
  4. CHANGE MASTER TO MASTER_HOST='mysql-master', MASTER_USER='replica', MASTER_PASSWORD='duren123', MASTER_LOG_FILE='mysql-bin.000003', MASTER_LOG_POS=0;
  5. FLUSH PRIVILEGES;
  6. START SLAVE;