为什么这不起作用:[MySQL][ODBC 5.1 Driver]用户访问被拒绝
所以我知道整个网络上都有一个与此非常相似的问题以及堆栈溢出:
但我认为我的问题是不同的。所以我设置了一个链接服务器并且它可以工作。我为我正在使用的 IP 设置了正确的权限。然而,当我们的用户“webuser@ CorrectIP”尝试访问它时,问题就出现了。因此,任何使用窗口身份验证的用户都可以访问它并且效果很好。但任何不使用 Windows 身份验证的都将被阻止。
然而,我已经尝试了所有常见的解决方案,例如设置严格的密码、更改 Microsoft SQL Server 中的安全设置等,但没有任何效果。
仅供参考:我使用的是 Microsoft SQL Server 2008 -> mysql(通过 phpMyAdmin)
So I know that there is a very similar question to this all over the web as well as stack overflow:
Error Access denied for user MySQL server?
But my question I think is different. So I have set up a linked server and it works. I have the correct permissions set up for my IP's that I am using. However the problem arises when our user "webuser@correctIP" tries to access it. Therefore, any user using window authentication is allowed to access it and works great. But any that are not using windows authentication are blocked.
However, I have tried all the common solutions such as setting up a strict password, changing security settings in Microsoft SQL Server etc. Nothing is working.
FYI: I am using this from Microsoft SQL Server 2008 -> mysql (through phpMyAdmin)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我需要做的是为我的链接服务器数据库创建一个新用户(mysql 数据库的用户)。然后我必须在链接服务器属性框的安全部分中设置该用户。一旦我创建了新用户,然后选择“使用此安全上下文进行创建:”,然后添加了我新创建的用户和密码,效果很好。如果您有任何疑问,请尽管提问。谢谢
What I needed to do was to create a new user for my linked servers database(user for the mysql database). Then I had to set up that user in the security section of the linked server properties box. Once I created my new user and then chose "Be made using this security context:" and then added my newly created user and password it worked great. If you have any question please just ask. Thanks