0

I'm trying to set up MySQL database to use in my django project, but getting erroe that database do not exist. I understand that first I should create it in MySQL console so I tried it like this:

$ mysql --username=myuser --password=1111
mysql> CREATE DATABASE 'myDB' CHARSET utf-8

when I hit enter after line above I'm getting following line

->

I assume that database is not created. I tried to do this in my system terminal and also in my project environment

So my questions:

1. Why DB is not created with command above ?

2. How should I create DB?

3. Do I need to use this weird quote ` or can use simple one like this ' ?

1
  • you missing ";" at the end. CREATE DATABASE myDB CHARSET utf-8; Commented Oct 1, 2014 at 7:51

1 Answer 1

1

MySQL commands need to be finalised with ;

CREATE DATABASE 'myDB' CHARSET utf-8;
Sign up to request clarification or add additional context in comments.

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.