-4

ALTER USER kalyan CREATEDB;

 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 'CREATEDB' at line 1 
2
  • For 1 it's not valid syntactically and your db is complaining about that. For 2. What do you expect this command to do? I have no idea. Commented Oct 11, 2021 at 7:29
  • i am trying for unit test in django. Got an error creating the test database: (1044, "Access denied for user 'kalyan'@'localhost' to database 'test_equalserp'") Commented Oct 11, 2021 at 7:39

1 Answer 1

0

delete your database if you have data inside db. If you have data, back it up. Otherwise, fix the sql code of the table.

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.