mysql用户相关操作,解决ERROR 1227 (42000): Access denied,解决1251 client does not support

  1. 查询用户
select host,user,plugin,authentication_string from mysql.user;
  1. 新建用户:
create user 'test'@'%' identified by '123456';

授权可以使用那些库

grant all on *.* to 'test'@'%'

解决:
mysql用户相关操作,解决ERROR 1227 (42000): Access denied,解决1251 client does not support_第1张图片

在这里插入图片描述

grant system_user on *.* to 'test';
ALTER USER 'test'@'%' IDENTIFIED WITH mysql_native_password BY '11111;

你可能感兴趣的:(网站搭建和运维,mysql,数据库,database)