ERROR 1396 (HY000): Operation CREATE USER failed for 'jack'@'localhost': Troubleshooting
In MySQL, attempting to re-create a user that has been deleted may result in the error "ERROR 1396 (HY000): Operation CREATE USER failed." To address this issue, follow these steps:
Example:
mysql> DROP USER 'jack'@'localhost'; Query OK, 0 rows affected (0.00 sec) mysql> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.00 sec) mysql> CREATE USER 'jack'@'localhost' IDENTIFIED BY 'test123'; Query OK, 0 rows affected (0.00 sec)
The above is the detailed content of Why Does MySQL Throw 'ERROR 1396 (HY000): Operation CREATE USER failed' and How Can I Fix It?. For more information, please follow other related articles on the PHP Chinese website!