PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
bugsy
Worker
Worker


Joined: May 08, 2007
Posts: 129

PostPosted: Tue May 08, 2007 4:02 am Reply with quote Back to top

Hi while trying to restore a database of a PHPNuke 7x Site with help of HeidiSQL (As database size is over 50mb) it came accross this error
Code:
/* SQL Error: BLOB/TEXT column 'item' used in key specification without a key length */


I am also posting the queries that were inserted before the error
Code:
CREATE TABLE nuke_myh_blog (   bid int(11) NOT NULL auto_increment,   cid int(11) DEFAULT '0' NOT NULL,   created int(11) DEFAULT '0' NOT NULL,   modified int(11) DEFAULT '0' NOT NULL,   published int(11) DEFAULT '0' NOT NULL,   visible int(11) DEFAULT '0' NOT NULL,   allow_comment int(11) DEFAULT '1' NOT NULL,   PRIMARY KEY (bid) )
CREATE TABLE nuke_myh_blog_cache (   cid int(11) NOT NULL auto_increment,   sid int(11) DEFAULT '0' NOT NULL,   item text NOT NULL,   stamp int(11) DEFAULT '0' NOT NULL,   hits int(11) DEFAULT '0' NOT NULL,   PRIMARY KEY (cid),   KEY nuke_myh_blog_cache_idx1 (stamp),   KEY nuke_myh_blog_cache_idx2 (sid),   KEY item (item) )


then came

Code:
/* SQL Error: BLOB/TEXT column 'item' used in key specification without a key length */


What it was to querry after that is
Code:
   KEY item (item)
);

#
# Dumping data for table 'nuke_myh_blog_cache'


Any idea what do i have to change in the .sql file to resolve this issue?

Thanks in advance
View user's profile Send private message Visit poster's website
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Tue May 08, 2007 8:25 am Reply with quote Back to top

and what if you import the database without that table?
View user's profile Send private message
bugsy
Worker
Worker


Joined: May 08, 2007
Posts: 129

PostPosted: Tue May 08, 2007 9:06 am Reply with quote Back to top

That i have not tried - logically it should work as 68 tables got installed properly and got stuck on that one - i got a single backedup .sql file so what i can try doing is i) drop that table from the sql file and try to re-execute the sql query with Heidi.

In that case any idea what can the be missed out if nuke_myh_blog table is dropped? I mean how important is it to Nukes Functioning? Its a PhpBB table i believe.

Logically if the .sql file is broken up into multiple files as per the tables then also it should work right? So i might just ii) try to load from the portion after the error table.

For added info - i got MySQL 4.1.20 in the server and sql file was saved from normal backup option from the admin backend.

Thanks
View user's profile Send private message Visit poster's website
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Tue May 08, 2007 9:50 am Reply with quote Back to top

well sometimes that happens when importing a table it goes wrong...
that narmally can be solved doing that one seperate..
just strip the stuff and load the other table parts before and after that one..
maybe im mistaken but that table is a forum mod,probably blog but its not that wellknown.
View user's profile Send private message
bugsy
Worker
Worker


Joined: May 08, 2007
Posts: 129

PostPosted: Wed May 09, 2007 5:16 am Reply with quote Back to top

Ya breaking the SQL up and skipping the error tables worked and I also realised that the set of tables came from a module called 'MyHeadlines' which was deactivated in the site anyway. So have dropped the nuke_myh_tables and all got uploaded. Yet to test run the new site though.

Thanks
View user's profile Send private message Visit poster's website
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Wed May 09, 2007 6:41 am Reply with quote Back to top

ah i see,but what a weird table name..
im no fan of MyHeadlines...
good luck..
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum