0

I uploade my Laravel/Lumen api to server after I checked it on localhost. for any query I have using (Where) it gives me same error such as this:

SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client (SQL: select * from `seasons` where `status` = active limit 1)

for example the above error get from this line as postman mentioned :

$season = Season::where('status','active')->first();

if I have simple return Like :

$router->get('/',function (){
        return "welcome";
    });

it is return successfully ,How can I solve this?

Milad
  • 119
  • 2
  • 13
Sermed mayi
  • 697
  • 7
  • 26

0 Answers0