mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-08-11 06:02 am

[dw-nonfree] DB name and user should be defined in config-private.pl

[commit: http://hg.dwscoalition.org/dw-nonfree/rev/4a8a8dd39c49]

http://bugs.dwscoalition.org/show_bug.cgi?id=1396

Remove %DBINFO from config-local.pl.

Patch by [personal profile] afuna.

Files modified:
  • etc/config-local.pl
--------------------------------------------------------------------------------
diff -r f6dd8c05a60e -r 4a8a8dd39c49 etc/config-local.pl
--- a/etc/config-local.pl	Tue Aug 11 01:36:16 2009 +0000
+++ b/etc/config-local.pl	Tue Aug 11 06:02:30 2009 +0000
@@ -25,7 +25,6 @@
     $HOME = $ENV{'LJHOME'};
 
     # the base domain of your site.
-    # CHANGE THIS
     $DOMAIN = $DW::PRIVATE::DOMAIN;
 
     # human readable name of this site as well as shortened versions
@@ -42,47 +41,6 @@
     # optional SMTP server if it is to be used instead of sendmail
     $SMTP_SERVER = "localhost";
     $MAIL_TO_THESCHWARTZ = 1;
-
-    # database info.  only the master is necessary.
-    # you should probably CHANGE THIS
-    %DBINFO = (
-               'master' => {  # master must be named 'master'
-                   'host' => "localhost",
-                   'port' => 3306,
-                   'user' => 'dw',
-                   'pass' => $DW::PRIVATE::DBINFO{master}->{pass},
-                   'dbname' => 'dw',
-                   'role' => {
-                       'cluster1' => 1,
-                       'slow' => 1,
-
-                       # optionally, apache write its access logs to a mysql database
-                       #logs => 1,
-                   },
-               },
-               # example of a TCP-based DB connection
-               #'somehostname' => {
-               #    'host' => "somehost",
-               #    'port' => 1234,
-               #    'user' => 'username',
-               #    'pass' => 'password',
-               #},
-               # example of a UNIX domain-socket DB connection
-               #'otherhost' => {
-               #    'sock' => "$HOME/var/mysqld.sock",
-               #    'user' => 'username',
-               #    'pass' => 'password',
-               #},
-    );
-
-    # Schwartz DB configuration
-    @THESCHWARTZ_DBS = (
-            {
-                dsn => 'dbi:mysql:dw_schwartz;host=localhost',
-                user => 'dw',
-                pass => $DW::PRIVATE::THESCHWARTZ_DBS{pass},
-            },
-        );
 
     # setup recaptcha
     %RECAPTCHA = (
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
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