+ Reply to Thread
Results 1 to 5 of 5

Thread: DB Conversion Error

  1. #1
    Join Date
    Jun 2007
    Posts
    75

    Default DB Conversion Error

    I posted this in another topic but i think it went un-noticed

    I seem to have run into a problem with the converting of the old GooseBerry DB. I am testing this on a VMware machine running winxp and have taken a snapshot of where I am.

    I can complete the install fine if I don't import the old SQL DB!

    But if I try use the old DB I get the following error:
    Code:
    Performing installation...Generating LocalSettings.php configuration file... 
    Database type: MySQL 
    Attempting to connect to database server as root...success. 
    Connected to 5.0.45-community-nt 
    Database wikidb exists 
    This appears to be a Deki Wiki Gooseberry database. Attempting to upgrade the DB schema to Hayes.
    Granting user permissions to wikiuser on wikidb...success. 
    combo permissions system DB upgrade...done 
    adding content-type column to `pages` 
    sprocs update complete 
    Applying misc database updates...done 
    adding at_image_width, at_image_height to `attachments` 
    adding tags tables 
    migrationg dekifarm db to hayes schema 
    adding special pages Query "INSERT INTO `pages` (`page_namespace`, `page_title`, `page_tip`, `page_parent`, `page_restriction_id`, `page_content_type`) VALUES (101, 'Redirects', 'Special page', 0, 0, 'text/plain'), (101, 'Userlogin', 'Special page', 0, 0, 'text/plain'), (101, 'Userlogout', 'Special page', 0, 0, 'text/plain'), (101, 'Preferences', 'Special page', 0, 0, 'text/plain'), (101, 'Watchedpages', 'Special page', 0, 0, 'text/plain'), (101, 'Recentchanges', 'Special page', 0, 0, 'text/plain'), (101, 'Listusers', 'Special page', 0, 0, 'text/plain'), (101, 'Listguests', 'Special page', 0, 0, 'text/plain'), (101, 'ListTemplates', 'Special page', 0, 0, 'text/plain'), (101, 'ListRss', 'Special page', 0, 0, 'text/plain'), (101, 'Search', 'Special page', 0, 0, 'text/plain'), (101, 'Sitemap', 'Special page', 0, 0, 'text/plain'), (101, 'Specialpages', 'Special page', 0, 0, 'text/plain'), (101, 'Contributions', 'Special page', 0, 0, 'text/plain'), (101, 'Emailuser', 'Special page', 0, 0, 'text/plain'), (101, 'Undelete', 'Special page', 0, 0, 'text/plain'), (101, 'Popularpages', 'Special page', 0, 0, 'text/plain'), (101, 'DeleteAll', 'Special page', 0, 0, 'text/plain'), (101, 'Watchlist', 'Special page', 0, 0, 'text/plain'), (101, 'Statistics', 'Special page', 0, 0, 'text/plain')" failed with error code "Field 'page_text' doesn't have a default value
    Any ideas?
    Thanks!

  2. #2

    Default

    Quote Originally Posted by Mike_Smith View Post
    I posted this in another topic but i think it went un-noticed

    I seem to have run into a problem with the converting of the old GooseBerry DB. I am testing this on a VMware machine running winxp and have taken a snapshot of where I am.

    I can complete the install fine if I don't import the old SQL DB!

    But if I try use the old DB I get the following error:
    Code:
    Performing installation...Generating LocalSettings.php configuration file... 
    Database type: MySQL 
    Attempting to connect to database server as root...success. 
    Connected to 5.0.45-community-nt 
    Database wikidb exists 
    This appears to be a Deki Wiki Gooseberry database. Attempting to upgrade the DB schema to Hayes.
    Granting user permissions to wikiuser on wikidb...success. 
    combo permissions system DB upgrade...done 
    adding content-type column to `pages` 
    sprocs update complete 
    Applying misc database updates...done 
    adding at_image_width, at_image_height to `attachments` 
    adding tags tables 
    migrationg dekifarm db to hayes schema 
    adding special pages Query "INSERT INTO `pages` (`page_namespace`, `page_title`, `page_tip`, `page_parent`, `page_restriction_id`, `page_content_type`) VALUES (101, 'Redirects', 'Special page', 0, 0, 'text/plain'), (101, 'Userlogin', 'Special page', 0, 0, 'text/plain'), (101, 'Userlogout', 'Special page', 0, 0, 'text/plain'), (101, 'Preferences', 'Special page', 0, 0, 'text/plain'), (101, 'Watchedpages', 'Special page', 0, 0, 'text/plain'), (101, 'Recentchanges', 'Special page', 0, 0, 'text/plain'), (101, 'Listusers', 'Special page', 0, 0, 'text/plain'), (101, 'Listguests', 'Special page', 0, 0, 'text/plain'), (101, 'ListTemplates', 'Special page', 0, 0, 'text/plain'), (101, 'ListRss', 'Special page', 0, 0, 'text/plain'), (101, 'Search', 'Special page', 0, 0, 'text/plain'), (101, 'Sitemap', 'Special page', 0, 0, 'text/plain'), (101, 'Specialpages', 'Special page', 0, 0, 'text/plain'), (101, 'Contributions', 'Special page', 0, 0, 'text/plain'), (101, 'Emailuser', 'Special page', 0, 0, 'text/plain'), (101, 'Undelete', 'Special page', 0, 0, 'text/plain'), (101, 'Popularpages', 'Special page', 0, 0, 'text/plain'), (101, 'DeleteAll', 'Special page', 0, 0, 'text/plain'), (101, 'Watchlist', 'Special page', 0, 0, 'text/plain'), (101, 'Statistics', 'Special page', 0, 0, 'text/plain')" failed with error code "Field 'page_text' doesn't have a default value
    Any ideas?
    Thanks!
    Hey Mike_Smith - Could you try editing your mysql config (my.ini on windows) and remove the STRICT_TRANS_TABLES sql-mode?

    change:
    sql-mode="STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION"
    to:
    sql-mode="NO_ENGINE_SUBSTITUTION"

    Then restart mysql and try again?

    Thanks,
    pete
    PeteE - MindTouch lackey
    Join #mindtouch on freenode for questions about MindTouch

  3. #3
    Join Date
    Jun 2007
    Posts
    75

    Default

    wow thats insane! I dunno where you guys pull these solutions from , but they work! Awesome stuff! Thanks PeteE Works great now

  4. #4
    Join Date
    Feb 2007
    Posts
    1,871

    Default

    Quote Originally Posted by Mike_Smith View Post
    wow thats insane! I dunno where you guys pull these solutions from , but they work! Awesome stuff! Thanks PeteE Works great now
    pete's our resident genius

  5. #5
    Join Date
    Jul 2006
    Location
    San Diego, CA
    Posts
    5,450

    Default

    Thumbs up for Pete indeed!
    Steve G. Bjorg - Chief Architect
    Did you check the MindTouch FAQ?
    Found a bug? Report it.
    Follow me on Twitter
    Find us on IRC: irc.freenode.net #mindtouch

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts