sequel pro mac 无法连接数据库

sequel pro mac 无法连接数据库

通过mysql命令行 可以登录 通过 sequel pro客户端无法登录

~ mysql -h 192.168.6.15 -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 98
Server version: 5.7.16 MySQL Community Server (GPL)

Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |

图片描述

我mac有2个以太网连接 一个外网(192.168.1.26) 一个内网(192.168.6.32) 这个数据库在内网

一个外网
图片描述

阅读 11.9k
3 个回答

写上端口!命令行默认3306,sequel pro并不会给你默认

兄弟,看下你的MySQL服务开启没~ 我刚和你的情况一样,先用终端登录MySQL。然后用sequel pro登录的时候一直失败,查了下是新版的MySQL加密方式suquel pro不支持,所以初始化了一下,结果在来登录还是不行。后来又看了半天,原来是初始化之后MySQL需要重启,忘了这个了。。。
因为我看到你这个 报错 MySQL said: Can't connect to MySQL server 和我的一样,感觉应该是这个问题,瞅一眼MySQL服务开启没

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题