mysql create new users and give equal rights to the root user

#创建新用户:
CREATE USER 'username'@'%' IDENTIFIED BY 'password';
#赋予权限:
GRANT ALL PRIVILEGES ON *.* TO 'username'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;

Note: This modification is only supported mysql5.6 and below versions, the 5.7 version of the password field is no longer a password

Published 42 original articles · won praise 10 · views 7068

Guess you like

Origin blog.csdn.net/MCJPAO/article/details/88925782