1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > MySQL创建用户 并赋予表权限

MySQL创建用户 并赋予表权限

时间:2022-11-08 17:32:11

相关推荐

MySQL创建用户 并赋予表权限

#允许本地访问的用户(127.0.0.1)mysql> create user see_yong@localhost identified by 'see_yong1'; # 允许外网IP访问的用户mysql> create user 'see_yong'@'%' identified by 'see_yong1';# 授予用户在本地服务器对该数据库的全部权限mysql> grant all privileges on dbname.* to see_yong@localhost identified by 'see_yong1';#授予用户通过外网IP对于该数据库的全部权限mysql> grant all privileges on dbname.* to 'see_yong'@'%' identified by 'see_yong1';#刷新权限mysql> flush privileges; #授予用户通过外网IP访问所有数据库的的全部权限mysql> GRANT ALL PRIVILEGES ON *.* TO 'see_yong'@'%' IDENTIFIED BY 'see_yong1';

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。