【问题标题】:Connect to "Azure Database for MySQL-Server" from Ubuntu 20.04从 Ubuntu 20.04 连接到“Azure Database for MySQL-Server”
【发布时间】:2021-12-13 20:59:38
【问题描述】:

我正在尝试从终端连接 Ubuntu 20.04 服务器到 Azure Database for MySQL-Server。直到两天前,这一切都很好。 当我现在按 Enter 时,会显示 mysql 警告,但什么也没发生:

user@ubuntu2004:~$ mysql -uuser -ppassword -hmyserver.mysql.database.azure.com

mysql: [Warning] Using a password on the command line interface can be insecure.

MySQL 服务器版本 Ubuntu 服务器:版本 8.0.27-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu))

Azure MySQL 服务器版本:8.0.15

但是,我可以从 Mac 连接到远程数据库。

Mac 上的 MySQL 版本: Ver 14.14 Distrib 5.7.32,适用于 osx10.12 (x86_64)

有人知道为什么它可以在 Mac 上运行而不能在 ubuntu 上运行吗?

【问题讨论】:

  • 如果您的 ral 凭据紧急更改它们

标签: mysql azure ubuntu-20.04 azure-mysql-database


【解决方案1】:

同样的问题发生在我身上。

Azure Database for MySQL 对 8.0.27 mysql 客户端有一些问题。

将其降级到 8.0.19。

# apt remove mysql-client-8.0 mysql-client-core-8.0
# apt install mysql-client-8.0=8.0.19* mysql-client-core-8.0=8.0.19*

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-10-14
    • 2020-06-13
    • 1970-01-01
    • 2019-10-01
    • 1970-01-01
    • 2017-10-13
    • 1970-01-01
    • 2020-08-22
    相关资源
    最近更新 更多