我正在嘗試從終端從 Ubuntu 20.04 服務器連接到 MySQL-Server 的 Azure 資料庫。直到兩天前這作業正常。當我現在按 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 上不作業?
uj5u.com熱心網友回復:
同樣的問題發生在我身上。
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*
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/340926.html
標籤:mysql 天蓝色 ubuntu-20.04 azure-mysql-数据库
