Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#26 04-09-2007 08:17:11

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: CSV imports through RAW DB admin

See  in the Wiki for restoring your product information (importing a CSV file) and  for exporting your product information.

Offline

 

#27 04-09-2007 09:09:29

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: CSV imports through RAW DB admin

wyattea wrote:

The Importer doesn't work for me but I can make my product list into a csv formatted file using excel, how do i get it into ccp6?  I finally found it in khxc's raw database, but am I suppose to convert to csv before manually editing? Could someone explain it to me from the start (since the manual doesn't even MENTION the words 'raw db admin'.

CCP6 has different file headers than ccp51 so you can't do a direct import of ccp51 data files into ccp6.

Why isn't the importer working for you?

If you want to do it manually you will need to have a product in ccp6 to export to csv so you can get the header names, as the program want export anything without a product in the data base, you will need to know to make this work. When you have the headers for ccp6 then you will have to copy and past the ccp51 info into the right headers of your ccp6 csv file. Once that is done you can import that file into ccp6.

I have had no problem importing a excel csv file saved as Windows(CSV).

John

Offline

 

#28 04-09-2007 16:06:34

Litemaster
Member
From: Plymouth, Devon, UK
Registered: 12-03-2005
Posts: 147
Website

Re: CSV imports through RAW DB admin

Step 1: Log into your KHXC Management Interface
Step 2: Open the drop down list for the Kryptronic Hybrid X Core Main Menu
Step 3: Select Database: Connections, Backups and Raw Admin
Step 4: Select Raw Database Admin
Step 5: Chose Export for the Table you need to work on
Step 6: On the next page go to the bottom and click on Submit
Step 7: Select Save by Right Clicking and specify a folder on your computer where the file should be saved

You now have the Table as a CSV file on your computer.

Make any changes you require and upload it back into the same table using the raw database admin but this time selecting import and then telling it which file to import..

Things to note:

1: Importing does not delete any existing data it only adds new data or makes changes to modified data

2: Keep the upload less than 2 Meg in size.

If you need to clear all the data from a particular table choose the 'SQL Statement: Submit a Raw SQL Statement' function and execute the appropriate statement.

Examples:

To clear the Products table of all products the statement is:
DELETE FROM ccp0_prod

Or to clear the Category table of all Categories the statement is:
DELETE FROM ccp0_cat

If for instance you need to delete all countries except your home country the statement looks like this:

DELETE FROM ccp0_country WHERE id<>'United Kingdom'

In this case all countries except the United Kingdom will be deleted

Mike Simpson
wwwdjshopper.net

Last edited by Litemaster (05-25-2007 02:43:25)

Offline

 

#29 04-09-2007 20:45:08

wyattea
Member
Registered: 01-07-2006
Posts: 1650

Re: CSV imports through RAW DB admin

Thanks guys (Dave/John/Mike)!  I was able to get the .csv file.  It already has some products (those default computer products) so I see the headers.  I'll be able to work with this. 

The importer problem I was having is a different thread.  Nick recognized the problem I was having and gave a solution (importer worked, didn't give error message, but nothing was actually imported).  Now that I have a better idea how this RAW DB admin thingamajig works, I'll visit that solution again and see if I can work it right (because nothing was imported including site settings and I don't want to go through the whole interface to update everything).

Thanks again!

James...

Offline

 

#30 05-23-2007 07:59:15

JohnCarter
Member
Registered: 05-09-2007
Posts: 95

Re: CSV imports through RAW DB admin

I was trying to replace the contents of khxc_formfields in the RAW database admin.

I ran the command:

DELETE FROM khxc_formfields

I was going to import an original version of the file. But when I click on "Import" on the khxc_formfields there is no field to say where I want to import from, obviously this is becuase I have deleted the formfields database.

Can some one tell me how I can run a raw SQL statement to import the original khxc_formfields.csv file back into the table?

Offline

 

#31 05-23-2007 08:52:25

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19970
Website

Re: CSV imports through RAW DB admin

Huge error!  That table controls all of the form fields in the whole system.  You'll want to re-run the installer and skip all install steps - then choose to do a database reload with ALL files at step 12.  That will reload the default data.


Nick Hendler

Offline

 

#32 05-23-2007 08:58:26

JohnCarter
Member
Registered: 05-09-2007
Posts: 95

Re: CSV imports through RAW DB admin

excellent, will this delete my databases such as gbu0_cat, gbu0_prod, gbu0_prodoptions, etc? If it will, can I use myPHPAdmin to import/export the tables?

Offline

 

#33 05-23-2007 12:34:00

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19970
Website

Re: CSV imports through RAW DB admin

No, it will not delete the information in those tables or drop the tables.  It simply reloads default information from the XML database definition files installed with the program.


Nick Hendler

Offline

 

#34 05-24-2007 04:00:36

JohnCarter
Member
Registered: 05-09-2007
Posts: 95

Re: CSV imports through RAW DB admin

Thank you Nick.

John.

Offline

 

#35 09-26-2007 11:37:49

superhero2000
Member
From: Harrisburg, PA
Registered: 03-26-2003
Posts: 1025
Website

Re: CSV imports through RAW DB admin

Back to the original reason for this post,  I am not able to import the CSV file that I have either.  I have exported the default ccp0_prod_dataexport.csv file from CCP and then modified it to have our own products.  However, when after modifying the file in Excel and then saving it in a CSV format, all the double quotes around the fields are no longer present.  As a result, I cannot import this file into CCP using the RAW DB Admin or phpMyADMIN.  Does anyone know how I can save the modified file from Excel so that the double quotes around the fields are present?


Vinh
VQC Designs, LLC


Offline

 

#36 09-26-2007 12:21:07

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: CSV imports through RAW DB admin

With Excel you need to save your files with CSV(Windows) formate, and make sure that you have all of the columns present for the database you are saving to.

John

Offline

 

#37 09-26-2007 15:15:38

superhero2000
Member
From: Harrisburg, PA
Registered: 03-26-2003
Posts: 1025
Website

Re: CSV imports through RAW DB admin

I only have the following options through Excel:

CSV (comma delimited)
CSV (Macintosh)
CSV (MS-DOS)

I don't have any option to save it as CSV (Windows).  None of the above options encapsulate the values with double quotes, hence my error when trying to import.


Vinh
VQC Designs, LLC


Offline

 

#38 09-26-2007 17:52:41

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: CSV imports through RAW DB admin

What version of Excel are you useing in my version there are some 29 different formates to save a file with the CSV(Windows) as one of them and is the only one I could get to work.

John

Offline

 

#39 09-26-2007 17:56:59

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: CSV imports through RAW DB admin

Wonder if it's the "new" version for home use that Vista sometimes comes bundled with?

Offline

 

#40 08-13-2008 03:38:54

jonathanjo
Member
Registered: 08-13-2008
Posts: 9

Re: CSV imports through RAW DB admin

When importing a table via Raw Database Admin in CCP6, the existing data is not fully overwritten. How do I empty the existing data first?

Offline

 

#41 08-13-2008 08:43:33

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: CSV imports through RAW DB admin

Importing through the raw database admin only updates existing items or creates non-existing items. Deleting item has to be done either one at a time through ccp, through a another database management system like phpadmin or you can use a raw sql statement. How many item do you want to remove?

John

Offline

 

#42 01-14-2009 16:24:44

CrownRoyal
Member
Registered: 01-10-2009
Posts: 718

Re: CSV imports through RAW DB admin

I'm having difficulty too with saving an edited ccp0_cat_dataexport.csv file. I keep getting and Excel error "ccp0_cat_dataexport.csv may contain features that are not compatible with CSV (Windows). Do you want to keep the workbook in this format? To keep this format which leaves out any incompatible features, click Yes. To preserve the features, click No. Then save a copy in the latest Excel format."

I'm using Microsoft Excel 2004 for Mac version 11.5.3. The file will save but the fields will not encapsulate with quotes. Ideas anybody? I've gone through this thread and reviewed suggestions that were appropiate. Nothing works. As a side note, I deal with csv all the time but typically I just go straight into phpmyAdmin and upload via there. Wrapping text in quotes is never a requirement in other dB's I work in.

Offline

 

#43 01-14-2009 16:39:08

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: CSV imports through RAW DB admin

I use Excel on Mac and get the same message when saving but I click yes and have not had any problems importing into ccp.

John

Offline

 

#44 01-14-2009 17:19:02

CrownRoyal
Member
Registered: 01-10-2009
Posts: 718

Re: CSV imports through RAW DB admin

I click Yes as well. When I import, it fails. When I open the file using a text editor, nothing is encapsulated.

Edit> Success afterwards. Didn't do anything different.

Last edited by CrownRoyal (01-14-2009 17:36:03)

Offline

 

Board footer