osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Features Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 09-04-2006, 12:14 PM
New Member
 
Join Date: Jun 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
mymikl
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 09-04-2006, 11:27 PM
New Member
 
Join Date: Mar 2006
Location: Cairns, Australia
Posts: 8
Thanks: 1
Thanked 1 Time in 1 Post
Rep Power: 0
oblongpeg
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 09-05-2006, 09:15 AM
New Member
 
Join Date: Jun 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
mymikl
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 09-05-2006, 09:25 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,488
Thanks: 73
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default RE: how to

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


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

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


All times are GMT -8. The time now is 08:11 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax