本地链接 Homestead 数据库报错
学习 laravel 课程的时候,主机链接虚拟机的数据库报错
报错信息:2007 - Protocol mismatch; server version = 11, client version = 10
网上查询说:
This was because of differences in X Protocol and classic MySQL protocol clients expectations on how connections were initialized.
Now, in such a situation the generated error message is
ERROR 2007 (HY000): Protocol mismatch; server version = 11, client version = 10.
If you encounter this error then you are probably trying to use the wrong port for the protocol your client is using.
附上我的版本和报错截图
Mac版本:10.15.5
主机数据库:8.0.20
链接报错截图:
推荐文章: