I'm trying out 1.3.10 right now and am using DATABASE_DSN to connect to the mysql database and DBAUTH_AUTH_DSN to change the database from which I want to retrieve user information. The two lines look like this in my config.ini file:
* DB Error: no such table
* (SELECT page.id as id, page.pagename as pagename, page.hits as hits, page.pagedata as pagedata FROM page WHERE pagename='global_data' [nativecode=1146 ** Table 'forums.page' doesn't exist])
Notice: Undefined property: _user in /usr/www/aikiweb/wiki/lib/main.php on line 497
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-05-27
Hmm... The previous message seems to have been munged. I wish there were a way to preview...
Any way, let's see if I add a space and change the @ sign to [at]:
I'm trying out 1.3.10 right now and am using DATABASE_DSN to connect to the mysql database and DBAUTH_AUTH_DSN to change the database from which I want to retrieve user information. The two lines look like this in my config.ini file:
DATABASE_DSN = "mysql://username:password@localhost/wiki";
DBAUTH_AUTH_DSN = "mysql://username:password@localhost/forums"
However, when I do so, I get the following error:
Fatal PhpWiki Error
lib/WikiDB/backend/PearDB.php:778: Fatal[256]: wikidb_backend_mysql: fatal database error
* DB Error: no such table
* (SELECT page.id as id, page.pagename as pagename, page.hits as hits, page.pagedata as pagedata FROM page WHERE pagename='global_data' [nativecode=1146 ** Table 'forums.page' doesn't exist])
Notice: Undefined property: _user in /usr/www/aikiweb/wiki/lib/main.php on line 497
Hmm... The previous message seems to have been munged. I wish there were a way to preview...
Any way, let's see if I add a space and change the @ sign to [at]:
DATABASE_DSN = "mysql: //username:password[at]localhost/wiki"
DBAUTH_AUTH_DSN = "mysql: //username:password[at]localhost/forums"
I could reproduce this bug, accepted and fixed it.
See Bug #962117 for the patch.