mysql8.0 默认 plugin 为 caching_sha2_password,有客户端支持吗? navicat, PHP (php7.4 待确认), MySQL Workbench 都不支持啊
其他客户端应该都支持了,毕竟已经出了好几年了,不支持应该是版本问题。我用 datagrip 是 ok 的
[email protected]:~$ sudo docker exec -it php php -v
PHP 7.4.12 (cli) (built: Nov 5 2020 20:24:10) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.12, Copyright (c), by Zend Technologies
回复上 9 位,我错了,“mysql8.0 默认 plugin 为 caching_sha2_password”是我听信了网上的传言,经我再三测试。
centos 默认安装 msyql ,plugin 为 mysql_native_password
默认安装 mariadb,plugin 为空,结果等同 mysql_native_password
debian,不能安装 mysql,安装 mariadb,plugin 为 caching_sha2_password,结果的确是拒绝访问。
MySQL Workbench,navicatl 为最新版,php7.3 都不支持,经过搜索 php7.4 好像支持,但又有问题的样子,
那么???