From: Pablo R. <pr...@cl...> - 2001-10-24 11:26:22
|
I downloaded the latest CVS, but I don't know how to fill the $DBParams. I'm using MySQL, my data is: User: root withouh password Database: dbwiki so I assume this in index.php would work .. $DBParams =3D array( // Select the database type: 'dbtype' =3D> 'SQL', //'dbtype' =3D> 'dba', =20 // For SQL based backends, specify the database as a DSN // The most general form of a DSN looks like: // // phptype(dbsyntax)://username:password@protocol+hostspec/database // // For a MySQL database, the following should work: // // mysql://user:password@host/databasename // // FIXME: My version Pear::DB seems to be broken enough that there is // no way to connect to a mysql server over a socket right now. //'dsn' =3D> 'mysql://guest@:/var/lib/mysql/mysql.sock/test', 'dsn' =3D> 'mysql://root@localhost/dbwiki', //'dsn' =3D> 'pgsql://localhost/test', =20 // Used by all DB types: // prefix for filenames or table names /*=20 * 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. */ //'prefix' =3D> 'phpwiki_', =20 // Used by 'dba' 'directory' =3D> "/tmp", 'dba_handler' =3D> 'gdbm', // Either of 'gdbm' or 'db2' work great for me. //'dba_handler' =3D> 'db2', //'dba_handler' =3D> 'db3', // doesn't work at all for me.... 'timeout' =3D> 20, //'timeout' =3D> 5 ); But don't. I'm using this with: Local network Windows 2000 Server Nusphere 1.3.11 for Windows Any cue? Regards, Pablo Roca - MS VFP - MVP La Coru=F1a - Espa=F1a Sysop del Portal gratuito de Visualfoxpro en Espa=F1ol http://www.portalfox.com |