afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] dw_dev2009-08-11 02:04 pm
Entry tags:

Database configuration moved to config-private.pl

If you're using dw-nonfree for testing, especially on Dreamhacks, you probably noticed that every time we have to update config-local.pl, we end up breaking your dev environments. That is because the repository's config-local.pl, which contains a different database name, overwrites yours. There are ways around this, but really database configuration information is site/installation-specific, and should be in config-private.pl, not config-local.pl.

So we just committed a fix which moves the database information hash to config-private.pl for both the main DB and the schwartz (workers/ESN/etc) DB.

This means that your installation will break as before; but it will not break on subsequent updates. To fix it this one last time, first open up $LJHOME/docs/config-private.pl.txt, and look for %DBINFO and %THESCHWARTZ_DBS. Then copy these structures into $LJHOME/etc/config-private.pl; replace with your own DB and username.

Note: for Dreamhacks, it's going to be:

user => 'dh_username',
dbname => 'dreamhack_username',

underscore, not hyphen, and double-check that it's dh_*, dreamhack_*, and not dw_*, dreamwidth_* respectively.

If you're self-hosting, then change your user/dbname again, if applicable.

Post a comment in response:

If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org