Development

#3083 (configure:database yields broken databases.yml?)

You must first sign up to be able to contribute.

Ticket #3083 (closed defect: fixed)

Opened 9 months ago

Last modified 8 months ago

configure:database yields broken databases.yml?

Reported by: jablko Assigned to: fabien
Priority: minor Milestone: 1.0.12
Component: tasks Version: 1.1.0 DEV
Keywords: Cc:
Qualification: Unreviewed

Description

I used the following command to create databases.yml and update my propel.ini:

./symfony config:database mysql://icaatom_admin:blahblah@localhost/icaatom_translate

The propel.ini it updated works and I successfully called:

./symfony propel:insert-sql

- however I got:

[wrapped: access violation [Native Error: Access denied for user 'icaatom_admin'@'localhost' to database 'icaatom_translate _'] [User Info: Array]]

- trying to access the database. The generated databases.yml is attached.

When I replaced the databases.yml with a manually edited configuration, this error disappeared and I was able to connect to the database.

Thanks, Jack

Attachments

databases.yml (141 bytes) - added by jablko on 03/10/08 20:29:15.

Change History

03/10/08 20:29:15 changed by jablko

  • attachment databases.yml added.

03/10/08 21:57:12 changed by dwhittle

This is caused by sfYaml::dump (and the spyc call below it). Basically it wraps lines at 40 characters. @fabien: can we change to not line wrap or to do so @ 120 chars?

03/14/08 21:33:00 changed by fabien

  • milestone set to 1.0.12.

03/14/08 21:42:32 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.

in r7888

03/14/08 22:59:38 changed by fabien

(In [7892]) replaced Spyc with a new YAML parser/dumper (closes #3083, #2887, #2622, #2514, #1966, #1339, #3016)

  • removed Spyc
  • added sfYamlParser, sfYamlDumper (should be totally BC thanks to the unit tests)
  • the parser and the dumper are much more robust and much more easier to fix
  • exceptions are thrown when a non valid YAML file is parsed (when you forget a : after a key for example, or if the indentation is not right ;))
  • fixed a bunch of bugs of the old parser
  • speed is more or less the same as Spyc
  • added an option to control the dump to switch from the block to the flow notation (propel:build-schema is now much more readable in YAML)
  • added more unit tests