Kayako logo
Installation & Upgrading Questions and issues regarding the installation and upgrade procedure of SupportSuite, eSupport and LiveResponse.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1) Old
Charybdis Offline
New Member
 
Posts: 9
Join Date: Jun 2007
How to restore the database if I don't have the files? - 02-10-2008, 07:48 PM

Hi,

I attempted an upgrade, but it went wrong. I have the backed up database, but I lost all the old files. I backed up the database in the admin page in Kayako (with default settings). It created a file called username_kayakosuite02Oct2008.sql.gz.

How could I restore the original state?

Or if I install the newest version, how could I restore the content of the old database into the new version?

I downloaded the version I used before the upgrade. Then I simply uploaded the files, and properly configured config.php. Then I restored the database using Cpanel (backup > restore database), with the exact same name and username/pw. But it does not work:

Invalid SQL: SELECT `vkey`, `data` FROM `swregistry` WHERE `vkey` IN('languagecache','usergroupsettingcache','staffa ssigncache','groupassigncache','staffcache','tgrou passigncache','settingscache','tgroupcache'); (Table 'username_kayakosuite.swregistry' doesn't exist)
eSupport is not installed, Please run setup/index.php to run eSupport

After install, which files will be modified and how? Because it seems that Kayako modifies some files after installation?

Last edited by Charybdis; 02-10-2008 at 07:54 PM.
   
Reply With Quote
  (#2) Old
Casey Rousseau Offline
Member
 
Casey Rousseau's Avatar
 
Posts: 180
Join Date: Aug 2008
Location: Connecticut, USA
02-10-2008, 08:23 PM

Undoubtedly some of what you're looking for happens when you run the upgrade script, which you may have deleted after the upgrade.


Casey Rousseau
Prophesy Transportation Solutions, Inc.
   
Reply With Quote
  (#3) Old
Charybdis Offline
New Member
 
Posts: 9
Join Date: Jun 2007
02-10-2008, 08:39 PM

Quote:
Originally Posted by Casey Rousseau View Post
Undoubtedly some of what you're looking for happens when you run the upgrade script, which you may have deleted after the upgrade.
As I wrote, I have the old database, but I lost all the old files.

I used version 3.11.01 (Zend). I want to restore the original state. How to do it?
   
Reply With Quote
  (#4) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,458
Join Date: Jan 2006
Location: United Kingdom
02-10-2008, 08:46 PM

Hi Chary,

Simple restore your database, upload the 3.30.02 (latest) files, edit and upload config.php (to point to your restored database) and run the upgrade script again. It is not normal an upgrade fails, how did it "fail"?


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#5) Old
Charybdis Offline
New Member
 
Posts: 9
Join Date: Jun 2007
02-10-2008, 09:38 PM

Quote:
Originally Posted by Jamie Edwards View Post
Hi Chary,

Simple restore your database, upload the 3.30.02 (latest) files, edit and upload config.php (to point to your restored database) and run the upgrade script again. It is not normal an upgrade fails, how did it "fail"?
Hi Jamie,

please help! How to restore the database with PHPMyAdmin?

I created the database backup from Kayako, using the default settings (Add “CREATE TABLE” SQL statements and Compress SQL Dump). I got an xxx.sql.gz compressed file.

I created a blank database, then tried to import my old Kayako database. I used these setting before importing in phpmyadmin:
Character set of the file: utf-8

Partial import
[checked] Allow interrupt of import in case script detects it is close to time limit. This might be good way to import large files, however it can break transactions.
Number of records(queries) to skip from start: 0
SQL compatibility mode: NONE

I got this error during importing:

Error

SQL query:

CREATE TABLE `swkbarticledata` (
`kbarticledataid` int( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
`kbarticleid` int( 10 ) unsigned DEFAULT '0' NOT NULL ,
`contents` mediumtext,
PRIMARY KEY ( `kbarticledataid` ) ,
KEY `kbarticledata1` ( `kbarticleid` ) ,
KEY `contents` ( `contents` )
);

MySQL said: Documentation
#1170 - BLOB/TEXT column 'contents' used in key specification without a key length

I use now MySQL 5.0.45-community. However, I installed this old Kayako version on MySQL 4. It seems that there is an error in the database (this is version 3.11.01).

Last edited by Charybdis; 02-10-2008 at 09:50 PM.
   
Reply With Quote
  (#6) Old
Charybdis Offline
New Member
 
Posts: 9
Join Date: Jun 2007
04-10-2008, 01:09 PM

Ok, I successfully restored the original database. Then uploaded the files of the latest Kayako version. Then I upgraded the site. The upgrade was successful (no errors).

Then I load the home page of Kayako, and it says:
eSupport is not installed. Run setup/index.php to install eSupport

Why?
   
Reply With Quote
  (#7) Old
Casey Rousseau Offline
Member
 
Casey Rousseau's Avatar
 
Posts: 180
Join Date: Aug 2008
Location: Connecticut, USA
06-10-2008, 05:08 PM

Are you certain you did this step? You didn't explicitly mention it.

Quote:
Originally Posted by Jamie Edwards View Post
edit and upload config.php (to point to your restored database)


Casey Rousseau
Prophesy Transportation Solutions, Inc.
   
Reply With Quote
  (#8) Old
supportskins Online
Senior Member
 
supportskins's Avatar
 
Posts: 3,865
Join Date: Aug 2006
Location: Mumbai, India
07-10-2008, 12:15 PM

Have you contacted Kayako Support from - https://members.kayako.net?



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Howto? Transitioning attachments from database to "files" directory dschargel SupportSuite, eSupport and LiveResponse 4 06-06-2008 06:23 PM
attached files in database or folder? mopa How do I? 1 13-12-2007 08:10 PM
Attachment Storage - Database or Files Directory markh SupportSuite, eSupport and LiveResponse 5 17-07-2007 02:02 PM
eSupport - storage of attachments - database vs files directory - Your experience? richm SupportSuite, eSupport and LiveResponse 3 25-04-2007 04:02 PM
eSupport Database Restore daveb SupportSuite, eSupport and LiveResponse 0 14-04-2006 01:15 AM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47