--- doc/build/Attic/loncapasqldatabase.html 2001/02/19 20:08:39 1.13 +++ doc/build/Attic/loncapasqldatabase.html 2002/03/01 22:14:00 1.17 @@ -50,12 +50,19 @@ of a resource).

+Security occurs as a function of the user 'www', +and the permissions on the files in the /usr/local/mysql +directory. (These files and directories should +be 700, 600, 500, 400, etc; not allow access to anyone +but user 'www'.) +

+

These commands create the loncapameta database.

 mysql> CREATE DATABASE IF NOT EXISTS loncapa;
 mysql> USE loncapa;
-mysql> CREATE TABLE IF NOT EXISTS metadata (title TEXT, author TEXT, subject TEXT, notes TEXT, abstract TEXT, mime TEXT, language TEXT, creationdate TEXT, lastrevisiondate TEXT, owner TEXT, copyright TEXT, FULLTEXT (title, author, subject, notes, abstract, mime, language, creationdate, lastrevisiondate, owner, copyright)) TYPE=MYISAM;
-mysql> INSERT INTO metadata VALUES ('1','2','3','4','5','6','7','8','9','10','11');
+mysql> CREATE TABLE IF NOT EXISTS metadata (title TEXT, author TEXT, subject TEXT, url TEXT, keywords TEXT, version TEXT, notes TEXT, abstract TEXT, mime TEXT, language TEXT, creationdate DATETIME, lastrevisiondate DATETIME, owner TEXT, copyright TEXT, FULLTEXT idx_title (title), FULLTEXT idx_author (author), FULLTEXT idx_subject (subject), FULLTEXT idx_url (url), FULLTEXT idx_keywords (keywords), FULLTEXT idx_version (version), FULLTEXT idx_notes (notes), FULLTEXT idx_abstract (abstract), FULLTEXT idx_mime (mime), FULLTEXT idx_language (language), FULLTEXT idx_owner (owner), FULLTEXT idx_copyright (copyright)) TYPE=MYISAM;
+mysql> INSERT INTO metadata VALUES ('The Structure of Scientific Revolutions','Thomas S. Kuhn','scientific philosophy','/res/msu/shh1/poobah2.html','aphorisms, theories, paradigm, revolution','current','still developing','This famous book stands out in contrast to the more rigid theories of Popper.','html','seniso','1999-03-03 12:34:56','1999-03-03 3:12:00','shh1@msu.edu','default');
 mysql> SELECT * FROM metadata WHERE title REGEXP "1";
 

@@ -398,7 +405,7 @@ These files are installed.

This is how I installed the DBI perl modules. -

+
$dbh
 [root@fenchurch DBI-1.14]# perl Makefile.PL
 *** Note:
     The optional PlRPC-modules (RPC::PlServer etc) are not installed.
@@ -437,7 +444,7 @@ All tests successful, 1 test skipped.
 Files=7,  Tests=179,  7 wallclock secs ( 6.46 cusr +  0.49 csys =  6.95 CPU)
 PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.00503/i386-linux -I/usr/lib/perl5/5.00503 test.pl
 test.pl 
-DBI test application $Revision: 1.13 $
+DBI test application $Revision: 1.17 $
 Using /home/user/DBI-1.14/blib
 Switch: DBI 1.14 by Tim Bunce, 1.14
 Available Drivers: ADO, ExampleP, Multiplex, Proxy, mysql
@@ -519,9 +526,10 @@ and typing the several "make" commands f
 
 

Configuration (automated)

-Not yet developed. This will be part of an interface -present on LON-CAPA systems that can be launched by -entering the command /usr/sbin/loncapaconfig. +Not yet stabilized. We are looking at webmin +and/or a text-UI tool with less software dependencies +than the python-anaconda hunk represented by +the prior loncapaconfig.

Manual configuration