DROP PUBLICATION

语法说明

DROP PUBLICATION 将一个已存在的发布删除。

语法结构

  1. DROP PUBLICATION pubname;

语法解释

  • pubname:已存在的发布名称。

示例

  1. create account acc0 admin_name 'root' identified by '111';
  2. create account acc1 admin_name 'root' identified by '111';
  3. create account acc2 admin_name 'root' identified by '111';
  4. create database t;
  5. create publication pub3 database t account acc0,acc1;
  6. mysql> show publications;
  7. +------+----------+
  8. | Name | Database |
  9. +------+----------+
  10. | pub3 | t |
  11. +------+----------+
  12. 1 row in set (0.00 sec)
  13. mysql> drop publication pub3;
  14. Query OK, 0 rows affected (0.01 sec)
  15. mysql> show publications;
  16. Empty set (0.00 sec)