# laravel 在mysql 8.0.11遇到的bug
### Authentication type
用戶的 Authentication type 默認為 caching_sha2_password,導致資料庫連接錯誤,拋出如下異常:

#### 解決方法
修改密碼驗證方式
ALTER USER 'YOURUSERNAME'@'localhost' IDENTIFIED WITH mysql_native_password BY 'YOURPASSWORD';

### 參考資源
https://laravel-china.org/articles/10736/some-craters-in-mysql-8011