platformsh / symfonyflex-bridge

Bridge library for running Symfony Flex on Platform.sh
MIT License
30 stars 15 forks source link

Problem with CLI on localhost #47

Open patie opened 2 years ago

patie commented 2 years ago

When i try make migration with maker bundle, i get error

bin/console make:migration
[critical] Error thrown while running command "make:migration". Message: "An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory"

In ExceptionConverter.php line 103:                                                                                         
  An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory  

In Exception.php line 26:                                                    
  SQLSTATE[HY000] [2002] No such file or directory  

In Driver.php line 28:                                                    
  SQLSTATE[HY000] [2002] No such file or directory  

in my .env i have empty DATABASE_URL (without that i got error Environment variable not found: "DATABASE_URL".) DATABASE_URL=

another commands like make:entity works OK, also web connecting without any problem.

any idea if im wrong somewhere? thank you!

patie commented 2 years ago

Same problem with doctrine:schema:* commands