Jump to content

Archived

This topic is now archived and is closed to further replies.

bigun007

File Restore Error 1170

Recommended Posts

OMG some URGENT help needed.

 

MY Forum went down adn i thought oh that\'s ok i just made a backup, when it came to restoring it i got the following message \"Error importing backup file

 

DEBUG MODE

 

SQL Error : 1170 BLOB column \'privmsgs_text\' used in key specification without a key length

 

CREATE TABLE phpbb_privmsgs_text( privmsgs_text_id mediumint( unsigned NOT NULL, privmsgs_bbcode_uid varchar(10) NOT NULL, privmsgs_text text, PRIMARY KEY (privmsgs_text_id), KEY privmsgs_bbcode_uid (privmsgs_bbcode_uid), KEY privmsgs_text (privmsgs_text) )

 

Line : 980

File : /home/jame8279/public_html/forum/admin/admin_db_utilities.php

 

 

PLEASE PLEASE PLEASE Help is there any way i can edit the backup or something to sort this?

Share this post


Link to post
Share on other sites

is it a .sql file or a .gz file?

 

If it\'s a .sql open it with notepad and you can edit it from there.

 

If it\'s .gz you can open it up with winzip and get the .sql file out.

 

Here is what mine looks like

 


CREATE TABLE phpbb_privmsgs_text (

 privmsgs_text_id mediumint(8) unsigned NOT NULL default \'0\',

 privmsgs_bbcode_uid varchar(10) NOT NULL default \'0\',

 privmsgs_text text,

 PRIMARY KEY  (privmsgs_text_id)

) TYPE=MyISAM;

 

Make sure you make a backup of your backup before you start messing with it :)

 

Hope that helps you out

Share this post


Link to post
Share on other sites

SQL 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 \' KEY privmsgs_bbcode_uid (privmsgs_bbcode_uid), KEY privmsg

 

CREATE TABLE phpbb_privmsgs_text( privmsgs_text_id mediumint(8) unsigned NOT NULL, privmsgs_bbcode_uid varchar(10) NOT NULL default \'0\', privmsgs_text text, PRIMARY KEY (privmsgs_text_id),) TYPE=MyISAM, KEY privmsgs_bbcode_uid (privmsgs_bbcode_uid), KEY privmsgs_text (privmsgs_text)

 

Line : 978

File : /home/jame8279/public_html/forum/admin/admin_db_utilities.php

Share this post


Link to post
Share on other sites

where is the

 


KEY privmsgs_bbcode_uid (privmsgs_bbcode_uid), KEY privmsgs_text (privmsgs_text) 

 

coming from?

Share this post


Link to post
Share on other sites

yeah, but I mean, from the code I posted, there is only 1 key by default on the table, but you have like 3 of them? Are these mods you made to the db or something?

Share this post


Link to post
Share on other sites

okay, I just did a backup of my db, and restored it fine. Here is what I have exactly for the table in my .sql file

 


#

# TABLE: phpbb_privmsgs_text

#

DROP TABLE IF EXISTS phpbb_privmsgs_text;

CREATE TABLE phpbb_privmsgs_text(

privmsgs_text_id mediumint(8) unsigned NOT NULL,

privmsgs_bbcode_uid varchar(10) NOT NULL,

privmsgs_text text, 

PRIMARY KEY (privmsgs_text_id)

);

 

The thing that is bugging me is you have these extra key\'s that are getting set? I\'m not sure where those are coming from. But try what I just posted and hopefully it\'ll work :)

Share this post


Link to post
Share on other sites

Here is what i now have - just checked another backup

 

DROP TABLE IF EXISTS phpbb_privmsgs_text;

CREATE TABLE phpbb_privmsgs_text(

privmsgs_text_id mediumint(8) unsigned NOT NULL,

privmsgs_bbcode_uid varchar(10) NOT NULL,

privmsgs_text text,

PRIMARY KEY (privmsgs_text_id),

KEY privmsgs_bbcode_uid (privmsgs_bbcode_uid),

KEY privmsgs_text (privmsgs_text)

);

 

#

# Table Data for phpbb_privmsgs_text

#

 

INSERT INTO phpbb_privmsgs_text (privmsgs_text_id, privmsgs_bbcode_uid, privmsgs_text)

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.