bigun007 Posted November 17, 2003 Share Posted November 17, 2003 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? Quote Link to comment https://forums.phpfreaks.com/topic/1384-file-restore-error-1170/ Share on other sites More sharing options...
DylanBlitz Posted November 18, 2003 Share Posted November 18, 2003 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 Quote Link to comment https://forums.phpfreaks.com/topic/1384-file-restore-error-1170/#findComment-4571 Share on other sites More sharing options...
bigun007 Posted November 18, 2003 Author Share Posted November 18, 2003 Ok have found it, and getting another error after edting Quote Link to comment https://forums.phpfreaks.com/topic/1384-file-restore-error-1170/#findComment-4577 Share on other sites More sharing options...
bigun007 Posted November 18, 2003 Author Share Posted November 18, 2003 **double post** Sorry :oops: Quote Link to comment https://forums.phpfreaks.com/topic/1384-file-restore-error-1170/#findComment-4578 Share on other sites More sharing options...
bigun007 Posted November 18, 2003 Author Share Posted November 18, 2003 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( 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 Quote Link to comment https://forums.phpfreaks.com/topic/1384-file-restore-error-1170/#findComment-4579 Share on other sites More sharing options...
DylanBlitz Posted November 18, 2003 Share Posted November 18, 2003 where is the KEY privmsgs_bbcode_uid (privmsgs_bbcode_uid), KEY privmsgs_text (privmsgs_text) coming from? Quote Link to comment https://forums.phpfreaks.com/topic/1384-file-restore-error-1170/#findComment-4594 Share on other sites More sharing options...
bigun007 Posted November 18, 2003 Author Share Posted November 18, 2003 Its just the notepad edit of the backup Quote Link to comment https://forums.phpfreaks.com/topic/1384-file-restore-error-1170/#findComment-4596 Share on other sites More sharing options...
DylanBlitz Posted November 18, 2003 Share Posted November 18, 2003 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? Quote Link to comment https://forums.phpfreaks.com/topic/1384-file-restore-error-1170/#findComment-4599 Share on other sites More sharing options...
bigun007 Posted November 18, 2003 Author Share Posted November 18, 2003 No i\'ve not modded it at all, i can send you the backup if you\'d like? Quote Link to comment https://forums.phpfreaks.com/topic/1384-file-restore-error-1170/#findComment-4600 Share on other sites More sharing options...
DylanBlitz Posted November 18, 2003 Share Posted November 18, 2003 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 Quote Link to comment https://forums.phpfreaks.com/topic/1384-file-restore-error-1170/#findComment-4603 Share on other sites More sharing options...
bigun007 Posted November 18, 2003 Author Share Posted November 18, 2003 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( 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) Quote Link to comment https://forums.phpfreaks.com/topic/1384-file-restore-error-1170/#findComment-4610 Share on other sites More sharing options...
bigun007 Posted November 18, 2003 Author Share Posted November 18, 2003 Which seems the samea s yours but this backup won\'t restore either :S Quote Link to comment https://forums.phpfreaks.com/topic/1384-file-restore-error-1170/#findComment-4611 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.