Results 1 to 10 of 26

Hybrid View

  1. #1
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Problems importing osc database

    "zen_categories" vs "categories" ... those are different table names.

    Why are you using "zen_categories" in one place and "categories" in another?

    Is your Zen Cart database set up to use "zen_" prefixes on all the table names? (ie: DB_PREFIX setting in your configure.php files.)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  2. #2
    Join Date
    Nov 2007
    Location
    USA
    Posts
    889
    Plugin Contributions
    5

    Default Re: Problems importing osc database

    "Is your Zen Cart database set up to use "zen_" prefixes on all the table names?"

    Yes, no good?

  3. #3
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Problems importing osc database

    Using "zen_" prefixes is fine ... as long as you're consistent.

    Are you really using "categories" instead of "zen_categories" in your zen.sql import? If so, then I'm not surprised that you're not seeing the data in Zen Cart ... because you're not loading it into your Zen Cart tables.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Nov 2007
    Location
    USA
    Posts
    889
    Plugin Contributions
    5

    Default Re: Problems importing osc database

    I take that back.

    Yes Zen_ is used for all.

    zen_banners_history
    zen_categories
    zen_categories_description

    Where do I go now?

  5. #5
    Join Date
    Nov 2007
    Location
    USA
    Posts
    889
    Plugin Contributions
    5

    Default Re: Problems importing osc database

    I believe this is what we wanted.

    -- phpMyAdmin SQL Dump
    -- version 2.10.2
    -- http://www.phpmyadmin.net
    --
    -- Host: localhost:3306
    -- Generation Time: Nov 29, 2007 at 11:33 AM
    -- Server version: 4.0.16
    -- PHP Version: 4.4.1

    SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

    --
    -- Database: `zen_p_os2`
    --

    -- --------------------------------------------------------

    --
    -- Table structure for table `zen_categories`
    --

    CREATE TABLE `zen_categories` (
    `categories_id` int(11) NOT NULL auto_increment,
    `categories_image` varchar(64) default NULL,
    `parent_id` int(11) NOT NULL default '0',
    `sort_order` int(3) default NULL,
    `date_added` datetime default NULL,
    `last_modified` datetime default NULL,
    `categories_status` tinyint(1) NOT NULL default '1',
    PRIMARY KEY (`categories_id`),
    KEY `idx_parent_id_cat_id_zen` (`parent_id`,`categories_id`),
    KEY `idx_status_zen` (`categories_status`),
    KEY `idx_sort_order_zen` (`sort_order`)
    ) TYPE=MyISAM AUTO_INCREMENT=1 ;

    --
    -- Dumping data for table `zen_categories`
    --


    -- --------------------------------------------------------

    --
    -- Table structure for table `zen_categories_description`
    --

    CREATE TABLE `zen_categories_description` (
    `categories_id` int(11) NOT NULL default '0',
    `language_id` int(11) NOT NULL default '1',
    `categories_name` varchar(32) NOT NULL default '',
    `categories_description` text NOT NULL,
    PRIMARY KEY (`categories_id`,`language_id`),
    KEY `idx_categories_name_zen` (`categories_name`)
    ) TYPE=MyISAM;

    --
    -- Dumping data for table `zen_categories_description`
    --

  6. #6
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Problems importing osc database

    Right. And your INSERT statements need to use the zen_ tablenames as well.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Nov 2007
    Location
    USA
    Posts
    889
    Plugin Contributions
    5

    Default Re: Problems importing osc database

    Sorry. Where do I see an insert?

    Do you zen via phone? My bill.

  8. #8
    Join Date
    Nov 2007
    Location
    USA
    Posts
    889
    Plugin Contributions
    5

    Default Re: Problems importing osc database

    OSC DB imported into ZEN DB properly. All set thanks!
    Cheers!
    v2.2.1

 

 

Similar Threads

  1. v139h Problem Importing SQL database to new database ready for testing Zencart 1.5
    By gillpotsoffun in forum Upgrading to 1.5.x
    Replies: 8
    Last Post: 24 Aug 2015, 11:24 PM
  2. Problems with importing database in phpMyadmin..
    By adi2009 in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 18 Jan 2011, 12:53 AM
  3. OSC database: what's 'OSC'?
    By gnotapipe in forum General Questions
    Replies: 3
    Last Post: 26 May 2006, 08:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg