[ERR] 1064-you has an error in your SQL syntax; Check the manual that corresponds to your MySQL s

Source: Internet
Author: User

[ERR] 1064-you has an error in your SQL syntax; Check the manual-corresponds to your MySQL server version for the right syntax-use-to-line 3

This error is prompted when the SQL statement is executed in MySQL 5.6,navicat for MySQL 10.0.10, and the following error is prompted when executing the statement in the SQL file in cmd:

D:\users\aven>mysql-uroot-p < f:\publish\data\share_update.sqlwarning:usingaPasswordOn the    command  line interface can  insecure .ERROR1064(42000) at  Line 4: You have anErrorinchyour SQL syntax; Check theManual that corresponds toYour MySQL serverversion  for  the  RightSyntax toUse near' Alter listen to the MCU listen to the change listen to ' local_id ' listen ' local_id ' listen to varchar (50) Listen ' at  Line 1
Solution:

The key to solving the problem is that the blanks in the error prompt are "Listen", which reminds me of the encoding problem of the file and then the conversion of the file encoding.
It is recommended to use notepad++, the code conversion is very convenient,

Convert to UTF-8 format, the problem is still, and then to ANSI format try:

Haha, the true colours of the bar! Put are replaced with spaces, saved, then executed, everything OK.

Reflection:

Why does this problem occur?
These statements are copied from QQ to Word, and the double is copied from Word to notepad++.
It is estimated that there is a problem with the space copied from QQ or word.

[ERR] 1064-you has an error in your SQL syntax; Check the manual that corresponds to your MySQL s

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.