Hey,
I got the same error and it is really easy to come out of this, here is the solution below:
Just type the below command on your shell:
mysql -u root
![](https://www.edureka.co/community/?qa=blob&qa_blobid=12276647242112853884)
Then rewrite the command to create a database, your error will go off.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=5858863313124766092)
I hope this works for you.