gpt4 book ai didi

mysql - 无法登录docker容器中的远程Mysql服务器

转载 作者:行者123 更新时间:2023-11-29 18:19:12 25 4
gpt4 key购买 nike

I am facing the Error:access denied for this user xyz which is created in CPanel database wizard .Now I want to access that database which is created in cpanel with host  172.17.0.1 and port 3306  in Docker container using mysql-client,it showing access denied error.Please help me to solve this issue

我遇到错误:在 CPanel 数据库向导中创建的用户 xyz 的访问被拒绝。现在我想使用 mysql-client 访问在 Docker 容器中使用主机 172.17.0.1 和端口 3306 在 cpanel 中创建的数据库,它显示访问被拒绝错误。请帮我解决这个问题

最佳答案

检查一下:

A local user is not the same thing as a remote user. For example fooUser@localhost is not the same as fooUser@1.2.3.4. If you want both users to have the same permissions, you need to duplicate permissions.

确保您的用户被授予从本地主机和 127.0.0.1 进行访问的权限

Source: Connect to your mysql database remotely

关于mysql - 无法登录docker容器中的远程Mysql服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46741382/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com