mysql 远程访问设置
查询是否可以远程访问:
select * from mysql.user where host=% and user=MysqlUserName;
1.允许远程访问
grant all privileges on *.* to MysqlUserName@'%' identified by 'MysqlPassword' with grant option;
flush privileges;
2.取消远程访问
revoke all on *.* from MysqlUserName@'%';
flush privileges;
本文固定链接:http://www.yizhi227.com/?post=12
本文由Jessie原创或编辑,互联分享,尊重版权,转载请以链接形式标明本文地址
本文由Jessie原创或编辑,互联分享,尊重版权,转载请以链接形式标明本文地址