From: peter p. <pe...@pe...> - 2004-06-09 04:28:18
|
Hello! >> You still haven't defined a database. Where can i define the database in the config.ini Regards Peter >> peter polz schrieb: >>> Next problem: >>> lib/WikiDB/backend/PearDB.php:34: Fatal[256]: Can't connect to database= : >>> wikidb_backend_peardb: fatal database error >>> =E2=82=AC DB Error: not found >>> =E2=82=AC (Unable to include the DB/.php file for `') >>> =E2=82=AC =20 >>=20 >> Please read and try to understand the error messages. >> You still haven't defined a database. ;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ; Part Two: Database Selection ;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ; Select the database type: ; ; SQL: access one of several SQL databases using the PEAR DB library. ; ADODB: uses the ADODB library for data access. ; dba: use one of the standard UNIX dbm libraries. ; file: use a flat file database. ; cvs: use a CVS server to store everything. DATABASE_TYPE =3D dbt =20 ; prefix for filenames or table names ; ; Currently you MUST EDIT THE SQL file too (in the schemas/ ; directory because we aren't doing on the fly sql generation ; during the installation. ; Note: This prefix is NOT prepended to the default DBAUTH_ ; tables user, pref and member! ;DATABASE_PREFIX =3D phpwiki_ ; For SQL based backends, specify the database as a DSN (Data Source Name), ; a kind of URL for databases. ; ; The most general form of a DSN looks like: ; ; dbtype(dbsyntax)://username:password@protocol+hostspec/database ; ; For a MySQL database, the following should work: ; mysql://usert:pass@host/databasename ; ; To connect over a unix socket, use something like ; ; mysql://user:password@unix(/path/to/socket)/databasename ; ; Valid values for dbtype are mysql, pgsql, or sqlite. ; ;DATABASE_DSN =3D "mysql://guest@unix(/var/lib/mysql/mysql.sock)/test" ; A table to store session information. Only needed by SQL backends. ; ; A word of warning - any prefix defined above will be prepended to whateve= r ; is given here. DATABASE_SESSION_TABLE =3D session ; For the file and dba backends, this specifies where the data files will b= e ; located. Ensure that the user that the webserver runs as has write acces= s ; to this directory. ; ; WARNING: leaving this as the default of '/tmp' will almost guarantee that ; you'll lose your wiki data at some stage. DATABASE_DIRECTORY =3D /tmp ; For the dba backend, this defines which DBA variant you wish to use. ; gdbm - commonly available ; db2 - Berkeley DB v2; not supported by modern versions of PHP ; db3 - Berkeley DB v3; as per db2. The best on Windows ; db4 - Berkeley DB v4; current version, however PHP has some issues ; with it's db4 support. ; dbm - Older dba handler; suffers from limits on the size of data ; items DATABASE_DBA_HANDLER =3D gdbm ; How long will the system wait for a database operation to complete? ; Specified in seconds. DATABASE_TIMEOUT =3D 20 ; The login code now uses PHP's session support. Usually, the default ; configuration of PHP is to store the session state information in ; /tmp. That probably will work fine, but fails e.g. on clustered ; servers where each server has their own distinct /tmp (this is the ; case on SourceForge's project web server.) You can specify an ; alternate directory in which to store state information like so ; (whatever user your httpd runs as must have read/write permission ; in this directory): ;SESSION_SAVE_PATH =3D some_other_directory |