账户与安全
用户创建和授权
MySQL8.0 创建用户和用户授权的命令需要分开执行:
create user 'tony'@'%' identified by 'Tony@2018';
grant all privileges on *.* to 'tony'@'%';
MySQL5.7.*
grant all privileges on *.* to 'tony'@'%' identified by 'Tony@2018';
认证插件更新
密码管理
角色管理
新增索引:降序、隐藏、函数
窗口函数-分析函数
MySQL 8.0 创建用户和用户授权的命令需要分开执行;
创建:create user '用户名'@'服务器名' identified by '密码';
授权:grant all privileges on *.* to '用户名'@'服务器名';
老版本语句:grant all privileges on *.* to '用户名'@'服务器名' identified by '密码';
用户创建和授权
mysql创建用户及授权
用户创建和授权
mySQL 8.0新特征:
① 创建用户和用户授权的命令需要分开执行:
create user 'tony'@'%' identified by 'Tony@2018';
grant all privileges on *.* to 'tony'@'%';
8.0版本创建用户以及授权需要分开两个步骤
create user 'xxx'@'%' identified by 'xxxxxxxx';
grant all privileges on *.* to 'xxx'@'%';