I solved the problem, it was something about the path of MySql's socket files configuration in my php.ini now everything works fine! thnx for you help! Paolo!
On 22 Ago, 13:29, chok <chok...@gmail.com> wrote: > Do you have launch : symfony propel:build-sql ? > > Check if this file exists (build-propel.xml) maybe your installation > of symfony ? > > On 21 août, 22:54, Paolo90 <paolomari...@gmail.com> wrote: > > > > > well, now i get the following error: > > > "Execution of target "insert-sql" failed for the following reason: / > > Library/WebServer/Documents/blog/lib/vendor/symfony/lib/plugins/ > > sfPropelPlugin/lib/vendor/propel-generator/build-propel.xml:272:1: > > [wrapped: SQLSTATE[HY000] [2002] No such file or directory] > > [phing] /Library/WebServer/Documents/blog/lib/vendor/symfony/lib/ > > plugins/sfPropelPlugin/lib/vendor/propel-generator/build-propel.xml: > > 272:1: [wrapped: SQLSTATE[HY000] [2002] No such file or directory]" > > > this is driving me crazy!! haha > > > On 21 Ago, 15:20, chok <chok...@gmail.com> wrote: > > > > In the schema on the top you have to put the connection name like: > > > > propel: > > > ... > > > > and not : > > > > blog: > > > ... > > > > I don't very well attributes with propel but I think you have to put > > > _atributes: {connection: propel} or something like that. But the first > > > way is the simpliest ;-) > > > > This is solve your problem ? > > > > On 21 août, 15:07, chok <chok...@gmail.com> wrote: > > > > > And in your propel.ini ? > > > > > On 21 août, 13:23, Paolo90 <paolomari...@gmail.com> wrote: > > > > > > Thanks for your reply, but it seems it doesn't work anyway! :( > > > > > > On 20 Ago, 17:42, Quince <quince.gib...@gmail.com> wrote: > > > > > > > I'm a new user so hopefully this solves your problem. In your > > > > > > schema.yml file I believe you're missing the following line for each > > > > > > table: > > > > > > "connection: propel" > > > > > > > This should be a level below the table name. For instance: > > > > > > -----------code------------- > > > > > > blog: > > > > > > connection: propel > > > > > > -----------/code------------- > > > > > > > HTH. > > > > > > > On Aug 20, 10:29 am, Paolo90 <paolomari...@gmail.com> wrote: > > > > > > > > Hi to everyone, > > > > > > > I'm a new Symfony's user, right now I'm trying to create my first > > > > > > > application but it seems I have a problem, when i execute the > > > > > > > command > > > > > > > "Propel:insert-sql" i get the following error: "Database "blog" > > > > > > > does > > > > > > > not exist." > > > > > > > What makes me crazy is that i configured the database connection > > > > > > > several times and i also checked it more than once and it is > > > > > > > correct > > > > > > > and of course the "blog" database exist on my MySql server....I > > > > > > > dont > > > > > > > have any idea on how i get rid of this error.. > > > > > > > I'm using symfony 1.4. > > > > > > > > Here there post the database.yml file: > > > > > > > " dev: > > > > > > > propel: > > > > > > > param: > > > > > > > classname: DebugPDO > > > > > > > debug: { realmemoryusage: true, details: { time: { enabled: > > > > > > > true }, slow: { enabled: true, threshold: 0.1 }, mem: { enabled: > > > > > > > true }, mempeak: { enabled: true }, memdelta: { enabled: true } } > > > > > > > } > > > > > > > test: > > > > > > > propel: > > > > > > > param: > > > > > > > classname: DebugPDO > > > > > > > all: > > > > > > > propel: > > > > > > > class: sfPropelDatabase > > > > > > > param: > > > > > > > classname: PropelPDO > > > > > > > dsn: 'mysql:host=localhost;dbname=blog' > > > > > > > username: root > > > > > > > password: null > > > > > > > encoding: utf8 > > > > > > > persistent: true > > > > > > > pooling: true" > > > > > > > > the schema.yml: > > > > > > > > "blog: > > > > > > > _attributes: > > > > > > > defaultIdMethod: native > > > > > > > post: > > > > > > > _attributes: { phpName: Post } > > > > > > > id: { type: integer, required: true, primaryKey: true, > > > > > > > autoIncrement: true } > > > > > > > create_at: { type: timestamp, required: true } > > > > > > > updated_at: { type: timestamp, required: false } > > > > > > > title: { type: varchar, size: '100', required: true } > > > > > > > body: { type: longvarchar, required: true } > > > > > > > category: > > > > > > > _attributes: { phpName: Category } > > > > > > > id: { type: integer, required: true, primaryKey: true, > > > > > > > autoIncrement: true } > > > > > > > created_at: { type: timestamp, required: true } > > > > > > > updated_at: { type: timestamp, required: false } > > > > > > > name: { type: varchar, size: '50', required: true } > > > > > > > partof: > > > > > > > _attributes: { phpName: partOf } > > > > > > > post_id: { type: integer, required: true, primaryKey: true, > > > > > > > foreignTable: post, foreignReference: id } > > > > > > > cat_id: { type: integer, required: true, primaryKey: true, > > > > > > > foreignTable: category, foreignReference: id }" > > > > > > > > can anyone help me with this?! > > > > > > > Thank you! -- 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