繁体   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