Brew MySQL版本8.0.12 Sequel Pro连接失败
。问题是,在我的情况下,解决方案并不是很容易理解的 MySQL表示:无法加载身份验证插件“caching_sha2_password”:dlopen(/usr/local/MySQL/lib/plugin/caching_sha2_password.so,2):未找到图像 我没有任何东西来初始化Mac系统首选项中的DB。第二个答案是:Brew MySQL版本8.0.12 Sequel Pro连接失败,mysql,homebrew,Mysql,Homebrew,。问题是,在我的情况下,解决方案并不是很容易理解的 MySQL表示:无法加载身份验证插件“caching_sha2_password”:dlopen(/usr/local/MySQL/lib/plugin/caching_sha2_password.so,2):未找到图像 我没有任何东西来初始化Mac系统首选项中的DB。第二个答案是: 转到my.cnf文件并在[mysqld]部分添加行: default authentication plugin=mysql\u native\u passwo
- 转到my.cnf文件并在[mysqld]部分添加行:
default authentication plugin=mysql\u native\u password
- 从终端登录mysql服务器:
,然后在shell内部执行以下命令:运行mysql-u root-p
通过“[password]”更改用户“root”@“localhost”,使用mysql_native_密码标识代码>
- 使用exit和run sudo服务mysqld restart退出mysql shell
mysql--help
Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf /usr/etc/my.cnf ~/.my.cnf
The following groups are read: mysql client
The following options may be given as the first argument:
--print-defaults Print the program argument list and exit.
--no-defaults Don't read default options from any option file.
--defaults-file=# Only read default options from the given file #.
--defaults-extra-file=# Read this file after the global files are read.
看起来my.cnf文件有三个区域,我不知道该编辑哪一个,也不知道该如何编辑
安装MySQL后,使用CLI进行身份验证,例如
mysql-uroot
然后运行以下命令以使用旧的身份验证方法:
alteruserroot@localhost通过“password”用mysql_native_密码标识代码>
最后,刷新特权:
FLUSH特权代码>
现在,您应该能够再次使用SequelPro(使用指定的密码)进行连接
据报道,第二种解决方案会导致多个用户在回答评论中导致sequel pro崩溃,所以我猜这是黑客行为
如何将mysql 8.0.12版连接到sequel pro?我应该使用另一个GUI吗?这个问题似乎也发生在workbench上
万一有人问我正在使用Mac OSX Sierra 10.13.5,这里是我在安装了brew mysql 8的macOS Mojave(10.14.3)上的工作原理
1) 将此行添加到位于/usr/local/etc中的my.cnf
default-authentication-plugin=mysql_native_password
2) 以root用户身份在命令行上连接到正在运行的mysql服务器,然后输入:
ALTER USER 'root'@'localhost'
IDENTIFIED WITH mysql_native_password
BY 'password';
用mysql服务器的根密码替换“password”
3) 为了确保所有的更改都是在mysql服务器上进行的,我重新启动了服务器
这些说明摘自mysql.com文档,您可以在这里找到: