-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
vtr
  • 11
  • 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. – nlta Oct 11 '21 at 07: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'") – vtr Oct 11 '21 at 07:39

1 Answers1

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.

deVOID
  • 155
  • 7