2017-10-05 13 views
0

私はホームステッドへの移行ができます。 これは私の.envLaravel HomesteadでpostgreSQLを使用する方法

DB_CONNECTION=pgsql 
DB_HOST=localhost 
DB_PORT=54320 
DB_DATABASE=intern 
DB_USERNAME=homestead 
DB_PASSWORD=secret 

であり、私は、サーバー名=ホームステッド、ユーザ名=屋敷、パスワード=秘密と私のPostgreSQLで新しいサーバを作ります。私はマイグレーションを行い、すべてのテーブルがデータベースに保存されています(サーバー=ホームステッド) 問題は、自分のサイトでログインをしたいときです。このようなエラーが発生します

SQLSTATE[08006] [7] could not connect to server: Connection refused↵ Is the server running on host "localhost" (::1) and accepting↵ TCP/IP connections on port 54320?↵could not connect to server: Connection refused↵ Is the server running on host "localhost" (127.0.0.1) and accepting↵ TCP/IP connections on port 54320? (SQL: select * from "users" where "email" = [email protected] limit 
+0

デフォルトのデータベース名は 'homestead'であり、それは迷惑メールボックス(' 'vagrant ssh')から実行しようとしました – morph

+0

私は試しましたが、まだエラーが発生します..それはmysqlで動作しますpostgresql @morph –

+0

コマンドラインやGUIアプリケーション経由でpgsqlサーバに接続できますか? – morph

答えて

0

あなたのポートの最後に余分な0があります。変更DB_PORT=54320DB_PORT=5432

関連する問題