0

once I created a user named 'dscl' and deleted afer few days. Now when I am trying to create a user named 'dscl'it is showing me an error message as below.

Note Code : 1973 Can't create user 'dscl'@'localhost'; it already exists

I executed a query (select * from mysql.user;) to check user list and it is not showing any user named 'dscl'.

What could be the cause?

Ravi
  • 1,744
  • 2
  • 20
  • 37

1 Answers1

3

Did you forget to FLUSH PRIVILEGES after altering the grant table?

You should do so now, so that the change (deleting dscl) is loaded into the server's memory.

Re-adding the user should then work.

Lightness Races in Orbit
  • 378,754
  • 76
  • 643
  • 1,055