How to solve the problem of mysql 1064 USING BTREE
This article mainly introduces "how to solve the mysql 1064 USING BTREE problem". In the daily operation, I believe many people have doubts about how to solve the mysql 1064 USING BTREE problem. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubt of "how to solve the mysql 1064 USING BTREE problem"! Next, please follow the editor to study!
Export a file from the server through the dump command
When importing to another library, prompt:
MySQL returns:
# 1064-You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'USING BTREE
KEY `authorid` (`authorid`) USING BTREE
KEY `dateline` (`dateline`) 24
It is found that the problem is the mysql version. The imported library is server version: 5.0.18, and the exported library is 5.1.45.
Open the exported mysql file and find something like
KEY `authorid` (`authorid`) USING BTREE
Modify to
KEY `authorid`USING BTREE (`authorid`)
Re-import, problem solved.
At this point, the study on "how to solve the mysql 1064 USING BTREE problem" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!