mysql4 通过mysql5认证

| |
[不指定 2010/07/19 14:23 | by 张明辉 ]
因为线上存在mysql版本的差异,因此经常需要mysql4从mysql5 server 上认证去拿资料
因此需要在mysql5上授权mysql4客户端。

方法如下:

引用

mysql> GRANT SELECT ON somedatabase.sometables TO 'some_user'@'some_hosts' identified by 'password';
mysql> update mysql.user set PassWord = OLD_PASSWORD('newpassword')
    -> where Host = 'some_host' and user = 'some_user';
mysql> flush privileges;



Tags: , ,
系统监控 | 评论(0) | 引用(0) | 阅读(111)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]