簡體   English   中英

無法通過 vmware 連接到 ubuntu 上的 mysql8.0

[英]can't connect to mysql8.0 on ubuntu via vmware

我似乎無法通過 Visual Studio(帶有連接器/網絡插件)或通過 mysql 工作台從我的 Windows 10 主機與 Ubunti 18.04 va VMware 上的 mysql 8.0 成功連接。

  • 我已將各種測試用戶設置為使用 mysql_native_password 和 caching_sha2_passwword

  • 通過設置 bind-address = 0.0.0.0 更新了 mysqld.cnf(當我編輯 my.cnf 時 mysql 失敗,但是有一個指向 /etc/mysql/mysql.conf.d/mysqld.cnf 的符號鏈接我更新了

  • 確實像所有教程所說的那樣授予所有特權; 做同花順

我可以在我的 Windows 主機上通過 powershell ssh 但 VS Studio 19 和 MYSQL Workbench 的簡單連接功能不起作用,當它應該時。

可能是什么問題,除了恢復到 mysql 5.7 之外,因為我在升級之前已經有了它,但它仍然無法正常工作,謝謝。

in the my.cnf file it should have:
[mysql]
bind-address = X.X.X.X 
#skip-networking 

It should have all three just like that. The "X.X.X.X" is your IP address, or use 0.0.0.0

then restart with "service mysql restart" just as every article on google has suggested and you're set.

Oh, and this only worked for me using the mysql_native_password plugin, not caching_sha2_password. Also, the user was set up with the host as '%' so for instance test@%. Lastly, do everything else above such as the GRANT and FLUSH and you're good to go.

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM