MySQL Error: No query specified

Source: Internet
Author: User

When doing MySQL master-slave synchronization by:

Mysql> show slave status\g; 1. Row ***************************               slave_io_state:waiting for Master to send event                  master_host:192.168.18.139                  Master_user:rep                  master_port:3307                connect_retry:60              master_log_file:mysql-bin.000001          read_master_log_pos:107               relay_log_file:relay-bin.000002                relay_log_pos:253        relay_master_log_file:mysql-bin.000001             Slave_ Io_running:yes            slave_sql_running:yes        seconds_behind_master:0master_ssl_verify_server_cert:no             Master_server_id:31 row in Set (0.00 sec)error:no query specified    ==> This error occurs

This error occurs because the command is executed: show slave status\g; when, add a ";" Semicolon.

This error does not occur when the semicolon is removed when the command is executed.

Mysql> Show slave status\g*************************** 1. Row ***************************               slave_io_state:waiting for Master to send event                  master_host:192.168.18.139                  Master_user:rep                  master_port:3307                connect_retry:60              master_log_file:mysql-bin.000001          read_master_log_pos:107               relay_log_file:relay-bin.000002                relay_log_pos:253        relay_master_log_file:mysql-bin.000001             Slave_IO _running:yes            Slave_sql_running:yes        

  

MySQL Error: No query specified

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.