Mysql远程连接赋予权限

来源:互联网 发布:整形市场分析数据 编辑:程序博客网 时间:2024/05/01 11:09
GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'192.168.1.3' IDENTIFIED BY 'mypassword' WITH GRANT OPTION; 
flush privileges; 
只赋予增删该查的话
GRANT update,select,insert,delete on databasename.tablename to 'myuser'@'ip_address' identified by 'password' with grant option;
flush privileges;
原创粉丝点击