Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> MySQL
Author Message
bugsy
Worker
Worker



Joined: May 08, 2007
Posts: 130

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

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

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







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

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
 
hitwalker







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

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.
 
bugsy







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

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
 
hitwalker







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

ah i see,but what a weird table name..
im no fan of MyHeadlines...
good luck..
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> MySQL

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©