create user ‘test’ @’ % ‘identified by’ test ‘;
create user ‘test’ @% ‘identified by’ test ‘;
display ERROR 1396 (HY000): Operation CREATE USER failed for ‘test’ @ ‘%’
check whether there is this USER
select USER from USER;
found no such user.
remember you deleted this user last time.
flush privileges may not be flush;
, ERROR 1396 (HY000): Operation CREATE USER failed for ‘test’ @ ‘%’
drop USER ‘test’ @ ‘%’;
drop USER ‘test’ @ ‘%’;
failed for ‘test’ @ ‘%’;
drop USER ‘test’ @ ‘%’;
flush privileges;
create user ‘test’ @ ‘%’ identified by ‘test’;
create user ‘test’ @ ‘%’ identified by ‘test’;
success.
Assume the user is there, so drop the user
After deleting the user, there is need to flush the mysql privileges
Now create the user.
http://stackoverflow.com/questions/5555328/error-1396-hy000-operation-create-user-failed-for-jacklocalhost
Read More:
- [MySQL] error 1396 (HY000): Operation create user failed for ‘MySQL’ @’localhost ‘
- Linux-mysql8.0 password reset problem – error 1396 (HY000): Operation alter user failed for ‘root’ @’localhost ‘
- [resolved] superset failed to create admin user: error! User already exists user or attributeerror: ‘nonetype’‘
- Solution to “550 create directory operation failed” in FTP operation file
- SQL exception handling – MySQL error 1005 (HY000): can’t create table ‘TMP’ (errno: 13)
- About error 1005 (HY000) in MySQL: can’t create table ‘_______ ‘(errno: 150) fool’s plan
- Add samba user prompt Failed to add entry for user.
- HDFS Java API operation error (user permission)
- Failed to create Oracle Oracle home user solution appears in oracle12c installation
- Add Samba user prompt failed to add entry for user
- phpstudy Error while setting value ‘STRICT_TRANS_TABLES, NO_AUTO_CREATE_USER, NO_ENGINE_SUBSTITUTION
- Mongodb (version 3.2) create user error addUser is not a function
- Error 1364 (HY000): field ‘SSL_ cipher’ doesn’t have a default value
- Solve MySQL error 1698 (28000): access denied for user ‘root’ @’localhost ‘
- User space operation GPIO error echo: write error: device or resource busy error resolution
- User CF itemcf collaborative filtering algorithm based on user and item
- “Failed to find entry for user…” appears when Linux uses samba
- Vscode cannot write user settings. Open user settings, clear errors or warnings, and then type again
- MySQL skip grant tables add user error 1290
- django.db.utils.IntegrityError: UNIQUE constraint failed: auth_user.username