简体   繁体   English

如何从本地计算机MySQL工作台连接到Azure Ubuntu VM MySQL服务器?

[英]How to connect to Azure Ubuntu VM MySQL server from local machine MySQL workbench?

I did set INBOUND PORT RULES in Azure. 我确实在Azure中设置了INBOUND PORT RULES。 but still it is not working. 但仍然无法正常工作。 在此处输入图片说明

I want to connect this with MySQL workbench and with google VMs it works. 我想将其与MySQL Workbench和google VM连接起来。 If you can please help with this? 如果可以,请帮忙吗?

Some possible reasons you might consider in this case: 在这种情况下,您可能会考虑一些可能的原因:

  • If you can connect to google VM with MySQL Workbench, I suppose the local firewall is open for the destination SQL server ports. 如果您可以使用MySQL Workbench连接到Google VM,那么我想为目标SQL Server端口打开了本地防火墙。
  • Check the NSG both VM and subnet level. 检查NSG VM和子网级别。
  • Check if the SQL server configuration is well, especially the SQL server port, options for connectivity. 检查SQL Server配置是否正确,尤其是SQL Server端口是否为连通性选项。 You can get more references about Connect to a SQL Server Virtual Machine on Azure . 您可以获得有关在Azure上连接到SQL Server虚拟机的更多参考。
  • Check if the port 3306 is listening on the Azure VM by using netstat -anpl | grep 3306 使用netstat -anpl | grep 3306检查端口3306是否正在Azure VM上netstat -anpl | grep 3306 netstat -anpl | grep 3306 . netstat -anpl | grep 3306 If not, you can check if your VM firewall blocks this access. 如果不是,则可以检查您的VM防火墙是否阻止了此访问。

If the issue still exists, you can add more details about your question. 如果问题仍然存在,则可以添加有关问题的更多详细信息。

You need to create a Firewall Rule to allow inbound traffic from the Public IP address where MySQL Workbench is being launched (See Image). 您需要创建一个防火墙规则,以允许来自启动MySQL Workbench的公共IP地址的入站流量(请参见图)。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法从本地计算机连接到在服务器上运行的mysql docker(错误10061)-Workbench - Cannot connect from local machine to mysql docker running on server (error 10061) - Workbench 如何将 MySQL 服务器连接到工作台 - How to connect MySQL server to workbench 如何从MySql Workbench连接到Internet中的MySql服务器? - How to connect to a MySql-Server in the internet from MySql Workbench? Azure Ubuntu VM不允许工作台连接 - Azure Ubuntu VM Not Allowing Workbench to connect to AWS RDS MySql:从本地工作台连接 - AWS RDS MySql: connect from local Workbench 如何将 Hostinger 中的 mysql 连接到我的本地工作台? - How to connect mysql in Hostinger to my local workbench? 无法从Windows上的MySQL Workbench连接到Ubuntu上的MySQL - Unable to connect to MySQL on Ubuntu from MySQL Workbench on Windows mysql_connect从本地计算机连接到远程服务器 - mysql_connect to Remote Server from local machine 无法使用我的本地笔记本电脑连接到在 Azure 上的 Linux (ubuntu 16.04) 虚拟机上运行的 MySQL - Can't connect to MySQL running on a Linux (ubuntu 16.04) virtual machine on Azure using my local laptop 从 Ubuntu 20.04 连接到“Azure Database for MySQL-Server” - Connect to "Azure Database for MySQL-Server" from Ubuntu 20.04
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM