mysql创建用户 mysql用户授权
#账号管理
##新建普通用户
###方法一:使用create user
create user 'username'@'host' identified by 'password';
--host为主机名,其中localhost指本地主机
--如果只指定用户名部分,则主机部分默认为%(对所有的主机开放权限)
###方法二:直接操作mysql数据库的user 表
insert into mysql.user(Host,User,authentication_string) values('host','us
原创
2021-01-14 23:38:38 ·
452 阅读 ·
0 评论