增加一个用户test1 密码为abc,让他可以在任何主机上登录,并对所有数据库有查询、插入、修改、删除的权限。 首先用以root 用户连入MySQL,然后键入以下命令: mysql>grant select,insert,update, delete on *.* to test2@localhost identified by \"abc\"; grant命令: 创建一个可以从任何地方连接服务器的一个完全的超级用户,但是必须使用一个口令something 做这个: mysql> grant all privileges on *.* to user@localhost identified by ’something’ with GRANT OPTION;
mysql怎么设置用户权限
最新推荐文章于 2024-04-22 20:02:08 发布