0

On starting my dockercontainer, I need to create a new db.

Since Laravel doesn't offer a command to create a new database I made my own artisan command (How to create a mysql db with Laravel).

My Custom command:

php artisan make:database newdb

When I execute this command, I get the Error SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it.

Why do I get this Error? I got this Error in the past when I tried accessing a database which wasn't created yet but now that I am creating a new db I just don't get, why It throws this Error.

Any help would be appreciated

carlWheezer
  • 15
  • 2
  • 7

0 Answers0