Error with dropping tables:
SQL query:
DROP user IF EXISTS 's01'@'%';
MySQL said: Documentation
#1064 - 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 'if exists 's01'@'%'' at line 1
Error without dropping tables:
SQL query:
/*Students*/ CREATE User 's01'@'%' IDENTIFIED BY 'pw1';
MySQL said: Documentation
#1396 - Operation CREATE USER failed for 's01'@'%'
Example of some of my code:
Drop user if exists 's01'@'%';
flush privileges;
/*Students*/
Create User 's01'@'%' Identified by 'pw1';
I don't exactly know what is wrong. I looked it up and it said add flush privileges, but I still get the same two errors.