Mysql--error:no query specified

mysql下抛出No query specified错误:


mysql> show master status\G;

*************************** 1. row ***************************

File: mysql-bin.000003

Position: 215

Binlog_Do_DB: 

Binlog_Ignore_DB: 

1 row in set (0.00 sec)


ERROR: 

No query specified



原因为\G后面多加了分号,如下:


mysql> show master status\G

*************************** 1. row ***************************

File: mysql-bin.000003

Position: 215

Binlog_Do_DB: 

Binlog_Ignore_DB: 

1 row in set (0.00 sec)