Laravel SQLSTATE[HY000] [2002] Verbindung abgelehnt

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Laravel SQLSTATE[HY000] [2002] Verbindung abgelehnt

by Guest » 25 Jan 2025, 15:39

Ich möchte mein vorhandenes Laravel -Projekt in meinem digitalen Ozean VPS
einsetzen. Ich habe dieses Tutorial verwendet und meine Website erfolgreich hochgeladen. Datei lautet: < /p>

Code: Select all

APP_ENV=local
APP_KEY=my app key
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost

DB_CONNECTION=mysql
DB_HOST=my ip
DB_PORT=3306
DB_DATABASE=form
DB_USERNAME=root
DB_PASSWORD=my pass
Aber hier ist das Problem: Ich habe MySQL verwendet und erstellt und ausgeführt

Code: Select all

php artisan migrate
< /code>
und haben diese Fehler erhalten: < /p>
[Illuminate\Database\QueryException] SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema.tables where table_schema = form and table_name = migrations)
< /code>
und < /p>
[PDOException] SQLSTATE[HY000] [2002] Connection refused

Top