Figured out problem/solution to my issue. The mediawiki database name contained a hyphen '-' wikidb-gen
Mediawiki does a clean install and seems to work fine. Semantic Mediawiki will not initialize.
On 10/12/07, Dan Thomas geoobject@gmail.com wrote:
Don't know if this is related, but did a clean install of MW 1.11.0. Added SMW 0.7 as first extension. Set $wgDBuser/$wgDBpassword to root account in LocalSettings.php
When click Initialize button on Special:SMWAdmin, receive following error:
Database error A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:
(SQL query hidden)
from within function "SMW::setupDatabase". MySQL returned error "1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-gen.`smw_relations` ( subject_id INT(8) UNSIGNED NOT NULL, su' at line 1 (localhost)".
On 10/10/07, Markus Krötzsch mak@aifb.uni-karlsruhe.de wrote:
On Mittwoch, 10. Oktober 2007, Jack Eapen C wrote:
Thanks for the hints. I raised the memory limits, checked the logs;
but no
clue. The server error log has no significant error messages. Some
more
info for all- even if I enable the SMW_Settings.php in LocalSettings,
there
is no problem. I get a blank page only when I add the enableSemantics('localhost'); line to the LocalSettings.php (SMW works
only
with this line). So it seems some problem with this function....?
This function just loads all the rest of SMW. Since I have no clue what could have caused the problem (we run SMW on many Linux machines without problems), I would suggest you to wait for two more days when we plan to make a first pre-release of SMW1.0 available. It's much better than 0.7 anyway ;)
Let's see whether the error persists there.
Markus
-- Markus Krötzsch Institut AIFB, Universät Karlsruhe (TH), 76128 Karlsruhe phone +49 (0)721 608 7362 fax +49 (0)721 608 5998 mak@aifb.uni-karlsruhe.de www http://korrekt.org
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
--
Dan Thomas