时间:2021-07-01 10:21:17 帮助过:23人阅读
1、创建用户(全部权限)
(1)本地访问
GRANT ALL PRIVILEGES ON *.* TO ‘username‘@‘localhost‘ IDENTIFIED BY ‘password‘ WITH GRANT OPTION; FLUSH PRIVILEGES;
(2)任意主机访问
GRANT ALL PRIVILEGES ON *.* TO ‘username‘@‘%‘ IDENTIFIED BY ‘password‘ WITH GRANT OPTION; FLUSH PRIVILEGES;
参考:https://yq.aliyun.com/ziliao/142129
2、删除用户
drop user username;
3、修改密码
set password for username = password(‘newpassword‘);
二、基本操作
1、增(insert)
2、删(delete)
3、改(update)
4、查(select)
mysql学习笔记
标签:mysql 访问 color 管理 grant 创建用户 font nbsp 学习笔记