mysql - Sequel Pro 无法连接 MySql 数据库
问题描述
我是mysql的新手,所以请多多包涵...
我通过自制软件安装了 mysql,在完成 mysql_secure_installation 中的所有步骤后,我可以在终端中连接到它。那是我收到这条消息的时候:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 10
Server version: 8.0.18 Homebrew
Copyright (c) 2000, 2019, 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.
这意味着它已安装并正常工作,对吗?
好的,所以现在我打开 Sequel Pro 并尝试使用套接字连接进行连接。我在用户名字段中输入了“root”。我添加了我在密码字段的 mysql_secure_installation 中设置的密码。但后来我得到了这个错误: Sequel Pro Error
我在安装中做错了吗?我忘记安装什么了吗?还是因为其他原因?
我怎样才能解决这个问题?
提前非常感谢!
解决方案
MySQL 8caching_sha2_password
默认使用。Sequel Pro 可能不支持此身份验证插件。
要使用以前的身份验证插件,请运行:
ALTER USER 'root'@'yourhost' IDENTIFIED WITH mysql_native_password BY 'yourpw';
FLUSH PRIVILEGES;
QUIT
推荐阅读
- amazon-web-services - 如何在 serverless-jest-plugin 中模拟 axios 的值
- python - 如何计算熊猫列中字符串的字符数
- java - 如何将字符串转换为 int[] 并检索数组以进行进一步处理
- r - rbinom(或其他)在 data.table 中按行和组
- javascript - 我如何从 textarea 中获取价值并检查它?
- excel - 如何根据excel中的相邻列值填充列?
- swift - 无法将类型“[(键:字符串,值:整数)]”的返回表达式转换为返回类型“[字符串:整数]”
- c++ - setlocale() 中语言环境的预期格式究竟是什么?
- c++ - C/C++ recv 挂起,虽然本地服务器发送数据
- html - 如何在 2 个元素上制作盒子阴影但使 1 个元素位置变粘?