Kayako logo
SupportSuite, eSupport and LiveResponse Discussion, troubleshooting and feedback related to Kayako's flagship support desk products SupportSuite, eSupport and LiveResponse.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1) Old
christinasc Offline
Member
 
Posts: 69
Join Date: May 2006
Hosted Site DB import into Owned Site - 28-08-2006, 09:01 PM

Does anyone know how to go about doing an import from the Hosted Site DB into the Owned Site?

Can this be done easily with a direct import using phpmyadmin?

Please point me in the right direction. Thanks.
   
Reply With Quote
  (#2) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,692
Join Date: Aug 2006
Location: Mumbai, India
29-08-2006, 09:32 AM

Hi,
This can be simple or tedious process depending upon your server configuration. Do you have root access to your server. The back up file generated by Kayako is in .tar.gz format and depending upon your database size, it can take long hours to import the database if the it is too big in size.

Regards,

SupportSkins Admin



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
  (#3) Old
christinasc Offline
Member
 
Posts: 69
Join Date: May 2006
29-08-2006, 06:22 PM

Unfortuantely my DB is located behind a firewall i don't have root access to that. I guess i'll have to ask the hosting company for help on that.
   
Reply With Quote
  (#4) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,692
Join Date: Aug 2006
Location: Mumbai, India
29-08-2006, 06:28 PM

How big is your database size? We can carry out the transfer if you are interested.



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
  (#5) Old
bear Offline
Community Moderator
 
Posts: 687
Join Date: Jan 2005
29-08-2006, 06:40 PM

Quote:
Originally Posted by supportskins
The back up file generated by Kayako is in .tar.gz format and depending upon your database size, it can take long hours to import the database if the it is too big in size.
This is untrue. If the db size was so large it would take "hours" to import, the import would time out and fail anyway. If you have a phpMyAdmin export that's under a few MBs in size, and were able to export it from that interface, it should take only a few minutes at most to import.

I can try to assist you if you get in touch with me via PM.
   
Reply With Quote
  (#6) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,692
Join Date: Aug 2006
Location: Mumbai, India
29-08-2006, 06:49 PM

Just to clarify, if your PHP settings max_execution_time is set with a larger value it will not time out instantly. This can be faster with root access as you can import the database using wget command.



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/

Last edited by supportskins; 29-08-2006 at 06:54 PM.
   
Reply With Quote
  (#7) Old
bear Offline
Community Moderator
 
Posts: 687
Join Date: Jan 2005
29-08-2006, 07:01 PM

Quote:
Originally Posted by supportskins
This can be faster with root access as you can import the database using wget command.
You mean retrieve the db using wget, don't you? Wget (if enabled for underpriveleged users) doesn't do anything but fetch.
   
Reply With Quote
  (#8) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,692
Join Date: Aug 2006
Location: Mumbai, India
29-08-2006, 07:04 PM

Yes but isn't fetching the large database the only "real" when migrating from hosted to Owned? Anyhow, with no root access phpMyAdmin is the other possible option.



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
  (#9) Old
bear Offline
Community Moderator
 
Posts: 687
Join Date: Jan 2005
29-08-2006, 07:07 PM

It's not the only issue, but with shell (doesn't need to be root in most cases) it's simpler. If not shell, there are also scripts that can be used if PhpMyAdmin fails (db's can be too large for this interface as well).
At any rate, the discussion is academic, since we don't know if size is an issue here.
   
Reply With Quote
  (#10) Old
christinasc Offline
Member
 
Posts: 69
Join Date: May 2006
29-08-2006, 09:17 PM

My DB size is only 7MB gzipped and tarred. I tried uploading it via the PHPAdmin interface but i guess it never made it in or timed out.

How do you know for sure your upload is done correctly? Do you get all the tickets and users to show up automatically?

Quote:
Originally Posted by supportskins
How big is your database size? We can carry out the transfer if you are interested.
   
Reply With Quote
  (#11) Old
bear Offline
Community Moderator
 
Posts: 687
Join Date: Jan 2005
29-08-2006, 09:28 PM

If it worked, you should be able to see the tables in phpMyAdmin. Imports are kind of slow using that interface, so make sure you allow enough time for it to complete. If the information hasn't changed from the previous install, and you're using the same files, you should be able to access the installation just as you did the last one.

I don't suppose you have shell access with your account do you?
If not, would your host import via shell on your behalf (we regularly do this for clients)?
   
Reply With Quote
  (#12) Old
christinasc Offline
Member
 
Posts: 69
Join Date: May 2006
31-08-2006, 04:13 AM

So I tried importing the hosted DB export into our owned version and it gave me this error:


> mysql --user=dbXXXXX --password=XXXX --host=XXXXXXX dbXXXXX < backup_07b2943b7960.sql

ERROR 1064 (00000) at line 20: 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 'DEFAULT CHARSET=latin1' at line 7

=======

I downloaded it directly from the kayako site for hosted backups, and unzipped and untarred it - by doing gunzip and tar -xvpf.

I also did a mysqldump from our kayako owned license database and then tried to import it, which worked with fine -- no errors, so i'm sure that importing work.

Can anyone give any suggestions why i can't import Kayako's hosted backup sql db? It seems like there is a problem with the default sql file generated by kayako's hosted backup.
   
Reply With Quote
  (#13) Old
bear Offline
Community Moderator
 
Posts: 687
Join Date: Jan 2005
31-08-2006, 12:06 PM

Could be mySQL version differences. What versions of mySQL are on each server?

Two fixes are to edit the sql file to remove instances of "DEFAULT CHARSET=latin1", or to dump the database using compatibility mode...though this solution comes with it's own bug...it's been known to ignore auto-increment flags in tables, breaking things worse.

Best bet is to edit out the CHARSET lines....a good search and replace program should do it.
   
Reply With Quote
  (#14) Old
christinasc Offline
Member
 
Posts: 69
Join Date: May 2006
31-08-2006, 11:31 PM

I think parts of sql tar.gz file from the kayako hosted version is beyond my control - it's not entirely text -some of it is binary.

No idea what kayako is actually running on their servers. I submitted a ticket but still haven't heard back from them in a day.

on my server, i have mysqladmin Ver 8.41 Distrib 5.0.16, for pc-linux-gnu on i686



Quote:
Originally Posted by bear
Could be mySQL version differences. What versions of mySQL are on each server?

Two fixes are to edit the sql file to remove instances of "DEFAULT CHARSET=latin1", or to dump the database using compatibility mode...though this solution comes with it's own bug...it's been known to ignore auto-increment flags in tables, breaking things worse.

Best bet is to edit out the CHARSET lines....a good search and replace program should do it.
   
Reply With Quote
  (#15) Old
bear Offline
Community Moderator
 
Posts: 687
Join Date: Jan 2005
01-09-2006, 12:13 AM

Quote:
Originally Posted by christinasc
I think parts of sql tar.gz file from the kayako hosted version is beyond my control - it's not entirely text -some of it is binary.
That might be images in the KB or something like that. That would appear as odd long strings.

Quote:
on my server, i have mysqladmin Ver 8.41 Distrib 5.0.16, for pc-linux-gnu on i686
MySQL version 5.0.16 is very new. I'd suggest the cause is most likely Kayako running an older version and the dumps aren't fully compatible.
Have you tried editing the info out as suggested (on a copy, of course)?

To see what version is on Kayako's server, go into your admin area, and in the left menu choose "diagnostics". Click "mysql info", and scroll down that page until you see the word "version". That's your mySQL version...

Last edited by bear; 01-09-2006 at 12:19 AM.
   
Reply With Quote
Reply

Tags
hosted, import, owned, site

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
Cron job to backup Kayako owned DB? christinasc SupportSuite, eSupport and LiveResponse 6 17-04-2007 06:15 PM
Kayako DB import into blank DB error christinasc SupportSuite, eSupport and LiveResponse 3 13-02-2007 10:14 PM
Upgrading SupportSuite Monthly Hosted -> Owned David Murphy Presales Questions 4 19-09-2006 04:29 AM



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


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