#创建新用户:
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