How to upload a database to the structure of my site

Author Message

Jorge estévez

Wednesday 21 November 2007 12:18:21 pm

Hello,

I have this huge database that I manage to save it as an excel table, each column is an attribute of the class product, no images, only text attributes and checkmarks.

How can I upload the table, and manage each column to be added to each attribute for the language XXX?

I will need to do the same later for another language!

Thanks, jorge

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Lazaro Ferreira

Thursday 22 November 2007 3:44:12 am

Hi Jorge,

If you format your Excel file to be accepted by

ezcsvimport.php

( Ezpublish CSV import script ), you can import your database from command line

Regarding the language you can tell the the script in which siteaccess you want to create the objects

For instance

php bin/php/ezcsvimport.php --siteaccess eng --class=your_class your_parent_node your_csv_file 

Hint: Run a ezcsvexport.php for the class that you want to import, just to see how it formats the CSV file, then format your Excel file accordingly, and run the ezcsvimport.php script

Regards!

Lazaro
http://www.mzbusiness.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 00:36:29
Script start
Timing: Jan 31 2025 00:36:29
Module start 'layout'
Timing: Jan 31 2025 00:36:29
Module start 'content'
Timing: Jan 31 2025 00:36:29
Module end 'content'
Timing: Jan 31 2025 00:36:29
Script end

Main resources:

Total runtime0.0229 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 588.2813151.2266
Module start 'layout' 0.00510.0041 739.5078220.7188
Module start 'content' 0.00910.0122 960.2266997.7578
Module end 'content' 0.02130.0015 1,957.984429.9922
Script end 0.0228  1,987.9766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002510.7764140.0002
Check MTime0.00104.5449140.0001
Mysql Total
Database connection0.00062.575810.0006
Mysqli_queries0.002310.139530.0008
Looping result0.00000.070910.0000
Template Total0.00104.610.0010
Template load0.00083.606710.0008
Template processing0.00020.930910.0002
Override
Cache load0.00052.238010.0005
General
dbfile0.00093.873680.0001
String conversion0.00000.040740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs