当前位置 : 主页 > 数据库 > mysql >

给Mysql添加远程访问权限的方法

来源:互联网 收集:自由互联 发布时间:2021-07-07
user:myuser pwd:mypassword 从任何主机连接到mysql服务器 GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION; user:myuser pwd:mypassword 从192.168.1.3连接到mysql服务器 GRANT ALL PRIVILEGE

user:myuser  pwd:mypassword 从任何主机连接到mysql服务器

GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;

user:myuser  pwd:mypassword 从192.168.1.3连接到mysql服务器

GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'192.168.1.3' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;

网友评论