简体   繁体   中英

Connect to "Azure Database for MySQL-Server" from Ubuntu 20.04

I'm trying to connect from a Ubuntu 20.04 Server to an Azure Database for MySQL-Server from terminal. That worked fine until two days ago. When i hit enter now the mysql warning is displayed and nothing happens:

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

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

MySQL Server Version Ubuntu Server: Ver 8.0.27-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu))

Azure MySQL Server Version: 8.0.15

However, i can connect to the remote database from Mac.

MySQL Version on Mac: Ver 14.14 Distrib 5.7.32, for osx10.12 (x86_64)

Does anyone have an idea why it works on Mac and on ubuntu not?

Same problem happens to me.

Azure Database for MySQL has some touble for 8.0.27 mysql client.

Downgrade it to 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*

你做的第一件事很容易是你切换到 manjaro 或 arch linux 但如果你不能很伤心 Ik 很伤心你做什么是你谷歌它。

谢谢它对我有用!!!!!!!!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM