osCmax v2.5 User Manual
Results 1 to 4 of 4

How do you totally empty the mysql catalog without deleting

This is a discussion on How do you totally empty the mysql catalog without deleting within the osCMax v2 Features Discussion forums, part of the osCmax v2.0 Forums category; customer data or other data, I just want to start my catalog fresh without tedious deletion of all products. And ...

      
  1. #1
    New Member
    Join Date
    Jun 2006
    Posts
    7
    Rep Power
    0


    Default How do you totally empty the mysql catalog without deleting

    customer data or other data, I just want to start my catalog fresh without tedious deletion of all products. And once I have my prodcuts reloaded, if there is only sub cat, how do I get the first page to display by default?
    thanks
    MrMikl

  2. #2
    New Member
    Join Date
    Mar 2006
    Location
    Cairns, Australia
    Posts
    8
    Rep Power
    0


    Default

    You can use the TRUNCATE syntax to remove all data inserted into a table.

    Have a look at

    http://dev.mysql.com/doc/refman/5.0/en/truncate.html

    to get an idea of what has to be done.

    If this seems to be beyond you, I would suggest a couple of bandaids and start thumping that delete button.

  3. #3
    New Member
    Join Date
    Jun 2006
    Posts
    7
    Rep Power
    0


    Default how to

    has anyone posted a MYSQL schema on the whole store or even just the catalog. The above reply is correct, but you must get rid of data in the child tables before you can get rid of the data in the parent tables. The MYSQL Truncate command doesnt mention how it deals with parent-child relationships.

    Would a regulare OSCOMMERENCE book work here or not, if it had the schema?

    If you would like a suggestion for OSCmax, it would be a contribution or a built in feature to empty the catalog. Its really a matter of using the DELETE * FROM [TABLENAME] in my sql. Everyone I spoke to seems to think MYSQL is too touchy, so use the catalog funcion to delete items one by one.

    anyway, thats my 2 cents worth. Thanks MrMikl

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default RE: how to

    Write it and I will add it to the codebase...
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

Similar Threads

  1. Deleting products_stock, options, and values in mysql
    By Dubious in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 08-24-2006, 05:51 PM
  2. Really confused, admin catalog page displays empty???
    By b5b4you in forum osCmax v2 Installation issues
    Replies: 4
    Last Post: 08-11-2006, 11:44 AM
  3. Bulk deleting to repopulate
    By RoyceK in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 01-18-2006, 08:28 PM
  4. I am totally lost
    By jallard in forum osCMax v1.7 Installation
    Replies: 2
    Last Post: 01-20-2005, 02:15 PM
  5. deleting RHS of header
    By starchild in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 12-09-2002, 05:47 PM

Bookmarks

Posting Permissions

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