0

Everywhere I look I can't find this "EXACT" situation.

I enter: create database october24

after hitting return I get:

->

So it's not my regular linux prompt and it's not the mysql prompt after logging in, which is mysql>

I don't get/see any errors just that crappy little prompt. I have to "ctrl-c" to get out, otherwise, nothing I enter after that prompt does squat. I haven't found anything on this. Can someone who is more versed in msyql/SQL point me in the right direction?

Thanks

4

2 回答 2

3

您需要以分号 ( ;) 结束每个语句。

create database october24;

该提示是因为 MySQL 不知道您已完成查询并期待更多输入。

于 2013-10-24T21:10:00.507 回答
3

你少了一个分号。输入它,按回车,然后提示将返回:)

例如:

mysql> select id, max(name)    
    -> from table
    -> group by id;
于 2013-10-24T21:10:11.050 回答