Python mysql.connector 连接数据库错误 - 当 运行 来自远程虚拟机时主机被阻止
Python mysql.connector connection DatabaseError - host is blocked occurring when running from remote vm
我正在尝试从虚拟机(Azure 上的 Ubuntu、运行)连接到远程 MySQL 数据库。
当我通过命令行从我的计算机访问数据库时,我输入:
mysql -u username -h www.foobar.nyc -p
提示我输入密码。当我输入密码时,它成功地让我登录到远程数据库。
现在,当我执行与上述相同的操作时,而不是从我通过 ssh 进入的远程虚拟机,输入密码后返回以下错误。
ERROR 1129 (HY000): Host 'xxx.xx.xxx.xxx' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'
谷歌搜索此错误将我带到:http://dev.mysql.com/doc/refman/5.7/en/blocked-host.html
我想了解为什么会出现如此多的连接错误 - 这正常吗?是否有我需要研究的 Azure 设置?我知道 Azure 有端点管理器。使用 Python mysql 库时,它读取 File "/site-packages/mysql/connector/connection.py", line 418, in _open_connection
在 self._do_handshake()
上发生的错误
我希望从这个问题中得到什么:
了解为什么会出现 "many" 错误 - 是什么导致了这种情况,并且收到如此多的错误是正常的(因为我链接到的 MySQL 文档中的一些评论出现建议)。
了解在 ssh 到远程基于 Azure 的虚拟机时,在命令行中启用相同操作的区别,而不是在命令行中启用相同操作的区别。
谢谢。
1.Understand why "many" errors are occurring - what is causing this and is receiving such high numbers of errors normal (as some comments in the MySQL documentation I linked to appear to suggest).
根据我的经验,您可以查看 mysql 错误日志,有关启用错误日志的详细信息在@ How to see log files in MySQL?。
2.Understand the differences that enable the same actions to work from local in command line but not from command line when ssh into remote Azure based vm.
根据您提供的最新评论,新创建的 VM 没有遇到同样的问题,它可能不是 Azure 平台特定的相关问题。
我正在尝试从虚拟机(Azure 上的 Ubuntu、运行)连接到远程 MySQL 数据库。
当我通过命令行从我的计算机访问数据库时,我输入:
mysql -u username -h www.foobar.nyc -p
提示我输入密码。当我输入密码时,它成功地让我登录到远程数据库。
现在,当我执行与上述相同的操作时,而不是从我通过 ssh 进入的远程虚拟机,输入密码后返回以下错误。
ERROR 1129 (HY000): Host 'xxx.xx.xxx.xxx' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'
谷歌搜索此错误将我带到:http://dev.mysql.com/doc/refman/5.7/en/blocked-host.html
我想了解为什么会出现如此多的连接错误 - 这正常吗?是否有我需要研究的 Azure 设置?我知道 Azure 有端点管理器。使用 Python mysql 库时,它读取 File "/site-packages/mysql/connector/connection.py", line 418, in _open_connection
在 self._do_handshake()
我希望从这个问题中得到什么:
了解为什么会出现 "many" 错误 - 是什么导致了这种情况,并且收到如此多的错误是正常的(因为我链接到的 MySQL 文档中的一些评论出现建议)。
了解在 ssh 到远程基于 Azure 的虚拟机时,在命令行中启用相同操作的区别,而不是在命令行中启用相同操作的区别。
谢谢。
1.Understand why "many" errors are occurring - what is causing this and is receiving such high numbers of errors normal (as some comments in the MySQL documentation I linked to appear to suggest).
根据我的经验,您可以查看 mysql 错误日志,有关启用错误日志的详细信息在@ How to see log files in MySQL?。
2.Understand the differences that enable the same actions to work from local in command line but not from command line when ssh into remote Azure based vm.
根据您提供的最新评论,新创建的 VM 没有遇到同样的问题,它可能不是 Azure 平台特定的相关问题。