[請益] mysql8.0版以後的問題

作者: q10242 (黑田祐司)   2018-06-10 00:46:04
HI 大家
最近在使用docker 如果用mysql的官方image 就會使用到mysql 8以後的版本
這是錯誤訊息
PDOException::("PDO::__construct():
The server requested authentication method unknown to the client
[caching_sha2_password]")
我去網路上找大部分是建議不要用這個版本 先用早期版本
或者更改mysql的設定 改成用native的password
我想問 有沒有辦法不要改版本或者改mysql設定
從php這一邊連結的部分來解決?
如果是使用laravel 要怎麼解
作者: jfcherng (小霹靂)   2018-06-10 02:06:00
等下一版PHP https://git.io/vh2wR

Links booklink

Contact Us: admin [ a t ] ucptt.com