由于连接字符串不正确,导致与Azure MySQL服务器的连接失败 [英] Connection to Azure MySQL server fails due to incorrect connection string

查看:253
本文介绍了由于连接字符串不正确,导致与Azure MySQL服务器的连接失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试从mysql客户端连接到Azure中的MySQL服务器时,即使使用正确的用户名和服务器名称,也会出现以下错误.我该如何解决?

When trying to connect to my MySQL server in Azure from mysql client, I get the following error, even though I am using the correct username and server name. How can I fix this?

连接字符串可能不正确.请访问门户以获取参考.

推荐答案

连接到Azure数据库for MySQL的服务器实例时,无论是从mysqlexe客户端还是从MySQL执行,都必须遵循<username@hostname>格式.工作台.我们建议您从Azure门户获取客户端的完整连接字符串,并在连接到MySQL服务器时使用它.

When connecting to your server instance of Azure Database for MySQL, you are required to follow the <username@hostname> format , whether you are doing it from mysqlexe client or MySQL workbench. We recommend you get the complete connection string for your client from the Azure portal and use it when connecting to your MySQL server.

阅读如何获取连接信息,以了解有关如何从各种客户端连接到MySQL服务器的更多信息.

Read How to get Connection Information to understand more about how to connect to your MySQL server from various clients.

这篇关于由于连接字符串不正确,导致与Azure MySQL服务器的连接失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆