MySQL用户创建及授权

set sql_log_bin = 0;
create user 'liebe'@'%' identified WITH mysql_native_password by 'liebe' PASSWORD EXPIRE NEVER;

alter user 'liebe'@'%' identified WITH mysql_native_password by 'liebe' PASSWORD EXPIRE NEVER;
GRANT ALL PRIVILEGES ON  *.* TO 'liebe'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;
set sql_log_bin = 1;

MySQL用户创建及授权_第1张图片

 

你可能感兴趣的:(mysql,数据库)