Laavel SQLSTATE[HY000] [2002] Connection refused

Username epiz_27486406 -

I have transferred my laravel project to the server and made the necessary changes in the env file, but I keep getting errors. How can I fix it?

Error Message


SQLSTATE[HY000] [2002] Connection refused (SQL: select * from contacts order by id asc)

Other Information

public function boot()



      'create' => 'olustur',

      'edit' => 'guncelle'


    $contacts = Contact::orderBy('id', 'ASC')->get();

        View::share('contacts', $contacts);

        View::share('settings', settings::find(1));



This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.