博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

如何设置MySQL远程连接

Posted on 2011-06-07 10:32  hyruur  阅读(218)  评论(0编辑  收藏  举报

登录到MySQL服务器端,在mysql库下执行grant all on *.* to 'remote'@'172.16.21.39' identified by 'password';即可

如果要设置为任何客户端都可以以root连接的话,可以这么写:
grant all on *.* to 'root'@'%' identifiied by 'root的密码'