lava-oushudb-dt-sql-parser/test/parser/mysql/syntax/fixtures/replication.sql
琉易 428d851913
feat: #190 improve mysql grammer (#196)
* refactor: generic rename to mysql

* refactor: g4 with mysql syntax

* test: mysql syntax

* refactor: remove useless keywords

* refactor: remove nonReserved keywords

* refactor: lint specificFunction

---------

Co-authored-by: liuyi <liuyi@dtstack.com>
2023-11-27 15:25:40 +08:00

17 lines
405 B
SQL

-- https://dev.mysql.com/doc/refman/8.0/en/purge-binary-logs.html
/* PURGE { BINARY | MASTER } LOGS {
TO 'log_name'
| BEFORE datetime_expr
} */
PURGE BINARY LOGS TO 'mysql-bin.010';
PURGE BINARY LOGS BEFORE '2019-04-02 22:46:26';
PURGE MASTER LOGS TO 'mysql-bin.010';
PURGE MASTER LOGS BEFORE '2019-04-02 22:46:26';
/* https://dev.mysql.com/doc/refman/5.7/en/reset-master.html */
RESET MASTER;