There was a problem loading the comments.

How to reconfigure the VIMP database connection?

Support Portal  »  Knowledgebase (FAQ)  »  Viewing Article

  Print
Editions: alle
Versionen: alle


First, please remove the 2 database configuration files:

#>  rm config/propel.ini config/databases.yml


Then check, if config/propel.ini.example and config/databases.yml.example exists. If not, please have a look at the info-box below.

Execute the configure:database-Task:

#>  ./vimp configure:database mysql://DBUSERNAME:DBPASSWORD@HOSTNAME/DBNAME


or, e.g. to mask a password with special characters:

#>  ./vimp configure:database mysql://'dbuser':'dbpassword'@'localhost'/'meinedb'

 

Important note:

In VIMP versions lower than 6.x, please use the command ./symfony instead of ./vimp in the code above.


Now VIMP uses the newly configured database connection.

If files databases.yml.example or propel.ini.example do not exist in the config/-directory:

In this case you have to extract a VIMP framework package manually and copy the files

config/databases.yml.example and
config/propel.ini.example

to the config/ directory of the VIMP installation that you want to reconfigure.

Afterwards you can execute the configure:database task as described above.

Share via

Related Articles

© VIMP GmbH