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.
cesy: "Cesy" - An old-fashioned quill and ink (Default)

[personal profile] cesy 2009-08-22 10:20 am (UTC)(link)
Do I also need to change the password just below the username, and if so, should I be changing it to a newly-invented password, or is it meant to be my dreamhack password, or what?