Jump to content


Photo

File Restore Error 1170


  • Please log in to reply
11 replies to this topic

#1 bigun007

bigun007
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 17 November 2003 - 10:46 PM

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?

#2 DylanBlitz

DylanBlitz
  • Members
  • PipPipPip
  • Advanced Member
  • 99 posts
  • LocationOC Baby!

Posted 18 November 2003 - 01:35 AM

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

#3 bigun007

bigun007
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 18 November 2003 - 08:45 AM

Ok have found it, and getting another error after edting

#4 bigun007

bigun007
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 18 November 2003 - 08:57 AM

**double post**

Sorry :oops:

#5 bigun007

bigun007
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 18 November 2003 - 08:57 AM

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

#6 DylanBlitz

DylanBlitz
  • Members
  • PipPipPip
  • Advanced Member
  • 99 posts
  • LocationOC Baby!

Posted 18 November 2003 - 06:16 PM

where is the

KEY privmsgs_bbcode_uid (privmsgs_bbcode_uid), KEY privmsgs_text (privmsgs_text)

coming from?

#7 bigun007

bigun007
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 18 November 2003 - 06:36 PM

Its just the notepad edit of the backup

#8 DylanBlitz

DylanBlitz
  • Members
  • PipPipPip
  • Advanced Member
  • 99 posts
  • LocationOC Baby!

Posted 18 November 2003 - 07:55 PM

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?

#9 bigun007

bigun007
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 18 November 2003 - 07:58 PM

No i\'ve not modded it at all, i can send you the backup if you\'d like?

#10 DylanBlitz

DylanBlitz
  • Members
  • PipPipPip
  • Advanced Member
  • 99 posts
  • LocationOC Baby!

Posted 18 November 2003 - 08:17 PM

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 :)

#11 bigun007

bigun007
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 18 November 2003 - 10:53 PM

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)

#12 bigun007

bigun007
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 18 November 2003 - 10:55 PM

Which seems the samea s yours but this backup won\'t restore either :S




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users