| 1 | #!perl |
1 | #!perl |
| 2 | ################################################################################ |
2 | ################################################################################ |
| 3 | # WeBWorK Online Homework Delivery System |
3 | # WeBWorK Online Homework Delivery System |
| 4 | # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ |
4 | # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ |
| 5 | # $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.78 2004/06/25 16:29:20 jj Exp $ |
5 | # $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.79 2004/06/25 23:56:56 jj Exp $ |
| 6 | # |
6 | # |
| 7 | # This program is free software; you can redistribute it and/or modify it under |
7 | # This program is free software; you can redistribute it and/or modify it under |
| 8 | # the terms of either: (a) the GNU General Public License as published by the |
8 | # the terms of either: (a) the GNU General Public License as published by the |
| 9 | # Free Software Foundation; either version 2, or (at your option) any later |
9 | # Free Software Foundation; either version 2, or (at your option) any later |
| 10 | # version, or (b) the "Artistic License" which comes with this package. |
10 | # version, or (b) the "Artistic License" which comes with this package. |
| … | |
… | |
| 306 | |
306 | |
| 307 | # if we choose mysql, we need information on connecting |
307 | # if we choose mysql, we need information on connecting |
| 308 | # to the database. Whatever you use here, you have to |
308 | # to the database. Whatever you use here, you have to |
| 309 | # create the database and grant read/write priveleges to |
309 | # create the database and grant read/write priveleges to |
| 310 | # the user listed here |
310 | # the user listed here |
|
|
311 | # To create the database in mysql, as root use: |
|
|
312 | |
|
|
313 | # create database DvipngDepths; |
|
|
314 | # use DvipngDepths; |
|
|
315 | # create table depths ( md5 char(33) not null, depth smallint, PRIMARY KEY (md5)) ; |
|
|
316 | # grant ALL on DvipngDepths.* to webworkWrite; |
|
|
317 | |
|
|
318 | # In the last statement, "webworkWrite" should match the |
|
|
319 | # user below |
|
|
320 | |
| 311 | dvipng_depth_db => { |
321 | dvipng_depth_db => { |
| 312 | dbsource => 'dbi:mysql:DvipngDepths', |
322 | dbsource => 'dbi:mysql:DvipngDepths', |
| 313 | user => $dbLayouts{sql}->{password}->{params}->{usernameRW}, |
323 | user => $dbLayouts{sql}->{password}->{params}->{usernameRW}, |
| 314 | passwd => $dbLayouts{sql}->{password}->{params}->{passwordRW}, |
324 | passwd => $dbLayouts{sql}->{password}->{params}->{passwordRW}, |
| 315 | } |
325 | } |