2

I can't figure out what I'm doing wrong. I open command prompt, move to my wamp/bin/mysql/bin directory and type

mysql -u root

since there is no password it logs in correctly, but when I type in

show databases

all I get is

->
->
->

until I click control+C

Here's a picture

1
  • Have you tried show databases;? I think that you need the last character ; . Commented May 16, 2016 at 22:08

1 Answer 1

4

You need a trailing semi-colon (;):

show databases;

It's waiting at the prompt because it thinks you haven't completed the statement yet. You could put a ; on a line by itself at this point and the full command would execute.

Sign up to request clarification or add additional context in comments.

2 Comments

oh my. Thank you disconnects in shame
In my case, having a semi-colon attached produces the same result.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.