platformsh/symfonyflex-bridge

Problem with CLI on localhost

patie opened this issue · 1 comments

patie commented

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

Same problem with doctrine:schema:* commands