Jump to content

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?

Link to comment
https://forums.phpfreaks.com/topic/1384-file-restore-error-1170/
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

Link to comment
https://forums.phpfreaks.com/topic/1384-file-restore-error-1170/#findComment-4571
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

Link to comment
https://forums.phpfreaks.com/topic/1384-file-restore-error-1170/#findComment-4579
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 :)

Link to comment
https://forums.phpfreaks.com/topic/1384-file-restore-error-1170/#findComment-4603
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)

Link to comment
https://forums.phpfreaks.com/topic/1384-file-restore-error-1170/#findComment-4610
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.