[英]Can't get my azure sql server up and running
I'm getting crazy over this issue, I hope someone can help me:我对这个问题很生气,希望有人能帮助我:
I created an Azure Database for MySQL server我为 MySQL 服务器创建了一个 Azure 数据库
Disabled SSL, and allowed all IPs to access禁用SSL,允许所有IP访问
Trying to connect to the server using Server name and Server admin login name尝试使用服务器名称和服务器管理员登录名连接到服务器
I tried MySQLWorkbench, and CLI mysql -u <Server admin login name> -h <Server name> -P 3306 -p
我尝试了 MySQLWorkbench 和 CLI mysql -u <Server admin login name> -h <Server name> -P 3306 -p
In both cases it freezes, no error messages, doesn't timeout, no logs on the azure side.在这两种情况下,它都冻结,没有错误消息,没有超时,azure 端没有日志。
I have literally no idea what's wrong or what to do about it.我真的不知道哪里出了问题,也不知道该怎么办。 The database was just created, totally untouched.数据库刚刚创建,完全没有动过。
Has anyone experiences something similar before?有没有人经历过类似的事情?
Thank you!谢谢!
With the given information it's not clear what is the exact error while accessing the database, but if you have deployed it properly you can access it easily without any error using both, MySQL Workbench and CLI.根据给定的信息,尚不清楚访问数据库时的确切错误是什么,但如果您已正确部署它,则可以使用 MySQL Workbench 和 CLI 轻松访问它而不会出现任何错误。
In your example, the sequence of parameter isn't in write format which might giving issue.在您的示例中,参数序列不是写入格式,这可能会出现问题。
Try below format:试试下面的格式:
mysql -h <server_name>.mysql.database.azure.com -u <admin_name>@<server_name> -p
If using MySQL Workbench, you can refer official documentUse MySQL Workbench to connect and query data in Azure Database for MySQL for the same.如果使用MySQL Workbench,可以参考官方文档Use MySQL Workbench to connect and query data in Azure Database for MySQL for same.
This should work.这应该工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.