1

i'm trying to do some practices on command line..

enter image description here

as you see in the pic the command is not triggering. i'm pressing Enter. (as described in practicing book)

3 Answers 3

2

End a command with a semicolon ;

CREATE DATABASE deneme;

As long as it keeps printing the -> prompt on new lines, it is expecting the ; terminator.

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

2 Comments

thank you. i got it now. so in this pic mysql is waiting for more commands until ; right?
@micheal, i am trying to connect but getting this error: mysql> -uroot; ERROR 1064 (42000): 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 '-uroo t' at line 1 mysql>
1

Use ; as stated.

This is a good example of why it is good practice to always end your SQL statements with a semicolon. It's a good habit to get into.

3 Comments

+1 many clients don't require the ; but it is an excellent habit.
i am trying to connect but getting this error: mysql> -uroot; ERROR 1064 (42000): 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 '-uroo t' at line 1 mysql> –
Are you trying to connect to the mysql client while you're already in it?
0

just type

;

at the end of the line :-)

Comments

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.