On Tue, 11 May 2010, Kim Rowan wrote:

> I am new to Symfony and Doctrine and I am trying to work my way
> through the Jobeet tutorial (using v1.4).  I am currently stuck at the
> following command:
> 
> php symfony doctrine:insert-sql
> 
> It gives me the following error in Terminal (I'm using a Mac 10.5.8):
> 
>   SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected.
> Failing Query: "CREATE TABLE jobeet_affiliate (id BIGINT
> AUTO_INCREMENT, url VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL
> UNIQUE, token VARCHAR(255) NOT NULL, is_active TINYINT(1) DEFAULT '0'
> NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL,
> PRIMARY KEY(id)) ENGINE = INNODB". Failing Query: CREATE TABLE
> jobeet_affiliate (id BIGINT AUTO_INCREMENT, url VARCHAR(255) NOT NULL,
> email VARCHAR(255) NOT NULL UNIQUE, token VARCHAR(255) NOT NULL,
> is_active TINYINT(1) DEFAULT '0' NOT NULL, created_at DATETIME NOT
> NULL, updated_at DATETIME NOT NULL, PRIMARY KEY(id)) ENGINE = INNODB

Did you try specifying the application and/or environment?

symfony help doctrine:insert-sql



-- 


-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to