You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever I run php artisan migrate inside my workspace, I get an error Could not connect to server. The detailed error is as follows:
[Doctrine\DBAL\Driver\PDOException]
SQLSTATE[08006] [7] 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 5432?
could not connect to server: Cannot assign requested address
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
Expected behavior:
The database connection should be establised and the tables should get created. The success message should be displayed as Migrations ran successfully
Reproduce:
Install laradock on Windows 10 using virtualbox
Create a shared folder on vbox and mount it to the docker machine from the terminal
sudo mkdir mountedfolder
sudo mount -t vboxsf sharedfolder /mountedfolder
Then run docker-compose up -d nginx postgres
Login to the workspace docker-compose exec workspace
The text was updated successfully, but these errors were encountered:
sanketraut
changed the title
[Illuminate\Database\QueryException] SQLSTATE[08006] [7] could not connect to server: Connection refused
Postgresql error- could not connect to server: Connection refused
Aug 13, 2017
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.
Info:
$ docker --version
): 1.12.5$ git rev-parse HEAD
): 245ddf3Issue:
Whenever I run
php artisan migrate
inside my workspace, I get an errorCould not connect to server
. The detailed error is as follows:[Doctrine\DBAL\Driver\PDOException]
SQLSTATE[08006] [7] 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 5432?
could not connect to server: Cannot assign requested address
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
Expected behavior:
The database connection should be establised and the tables should get created. The success message should be displayed as
Migrations ran successfully
Reproduce:
docker-compose up -d nginx postgres
docker-compose exec workspace
php artisan migrate
Relevant Code:
Config sample code is as follows:
The text was updated successfully, but these errors were encountered: