What do you have in config/doctrine/schema.yml and in config/ databases.yml ? If you run "symfony doctrine:build --all --and-load --no-confirmation" do you get the same error?
On 28 led, 09:34, Andrea Marin <[email protected]> wrote: > Hi all, > > someone can help me for this sql problem, i try to search with google but I > cannot find a solution and I don't know how to go ahed. > > Il giorno 27/gen/2010, alle ore 10.11, Andrea ha scritto: > > > > > Hi all, > > > i'm trying to follow the Jobeet 1.4 Doctrine guide and when i run the > > command php symfony doctrine:insert-sql I receive this error: > > > Warning: PDO::__construct(): php_network_getaddresses: getaddrinfo > > failed: nodename nor servname provided, or not known in /Users/andrea/ > > Documents/sfproject/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/ > > lib/vendor/doctrine/Doctrine/Connection.php on line 470 > > > Warning: PDO::__construct(): [2002] php_network_getaddresses: > > getaddrinfo failed: nodename nor servn (trying to connect via > > tcp://localhost,dbname=jobeet:3306) in /Users/andrea/Documents/ > > sfproject/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/ > > doctrine/Doctrine/Connection.php on line 470 > > > PDO Connection Error: SQLSTATE[HY000] [2002] php_network_getaddresses: > > getaddrinfo failed: nodename nor servname provided, or not known > > > I check the Connection.php file at line 470 but there is only the > > connection to db. > > > Before of this commend i run two command for create the model and sql: > > > php symfony doctrine:build --model > > php symfony doctrine:build --sql > > > What is my mistake? > > Thanks all. > > > -- > > You received this message because you are subscribed to the Google Groups > > "symfony users" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
