数据库
首页 > 数据库> > Digital Ocean,使用mySQL工作台连接到数据库

Digital Ocean,使用mySQL工作台连接到数据库

作者:互联网

我刚刚启动了运行ubuntu 14.04 LAMP服务器的数字海洋服务器.我使用我的Droplet IP地址,root用户和3306端口.输入了正确的密码,但是我终生无法连接到服务器上的SQL.有什么建议么?

MySQL Workbench中的错误:

Your connection attempt failed for user 'root' from your host to server at myIP:3306:
  Can't connect to MySQL server on 'myIP' (61)

解决方法:

我可以在这里找到这个答案:

https://www.digitalocean.com/community/questions/how-to-create-a-secure-connection-for-workbench-to-mysql

MySQL Workbench works without any configuration necessary. When making
a new connection, select “Standard TCP/IP over SSH”, then change the
SSH and MySQL parameters as necessary. (You should probably keep the
SQL server IP address as 127.0.0.1.)

标签:digital-ocean,server,mysql-workbench,mysql
来源: https://codeday.me/bug/20191028/1953315.html