問(wèn)題描述 數(shù)據(jù)庫(kù)使用Db查詢沒(méi)有問(wèn)題 但是使用模型,會(huì)報(bào)數(shù)據(jù)庫(kù)連接錯(cuò)誤 程序代碼 $goods = Good::where('id', $this->goods_id)->where('status', 1)->first(); 報(bào)錯(cuò)信息 PDOException: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (u...