mysql - Digital Ocean,使用 mySQL workbench 连接数据库

标签 mysql server mysql-workbench digital-ocean

我刚刚启动了运行 ubuntu 14.04 LAMP 服务器的 digital ocean 服务器。我使用了我的 Droplets 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.)

关于mysql - Digital Ocean,使用 mySQL workbench 连接数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29129147/

相关文章:

mysql 再次比较生成列的值

mysql - 如何在 Mysql Workbench GUI 中查看表格内容?

php - 使用 PHP 连接到数据库

mysql - 获取 x 列的 MAX,同时获取 y 列的 DISTINCT

php - 数据库搜索问题 PHP

sql - 从邻接列表中选择并从下到上排序

javascript - 使用node.js将url转发到游戏服务器

javascript - jquery、jquery-ui 和 bootstrap 的 CSS 和 Javascript 顺序

mysql - 合并表和输出而不使用 Group By?

php - 如何用 Eloquent 方式在数据透视表中获取具有特定属性的所有项目?