MySQL:SyntaxError:意外的标识符 [英] MySQL: SyntaxError: Unexpected identifier
本文介绍了MySQL:SyntaxError:意外的标识符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚在计算机上安装了MySQL,当我尝试从MySQL Shell创建数据库时,出现此错误:
I just installed MySQL on my computer and when I try to create a database from the MySQL shell, I get this error:
MySQL JS > CREATE DATABASE databasename;
SyntaxError: Unexpected identifier
有人知道为什么会这样吗?也许MySQL的安装有问题?
Does anyone know why this is happening? Maybe there is a problem with the insallation of MySQL?
推荐答案
通过在此处查看此线程,您似乎可以在js模式下使用shell,您可以通过使用switch来将其关闭
By looking at this thread here, it looks like you might be using the shell in js mode, you might be able to toggle it off by using the switch
\sql
https://forums.mysql.com/read. php?10,661192,661203#msg-661203
这篇关于MySQL:SyntaxError:意外的标识符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文