Results 1 to 8 of 8
  1. #1
    Join Date
    May 2007
    Location
    Italy
    Posts
    438
    Plugin Contributions
    0

    Default how to delete a sql patch of a mod?

    hello, many times I download mods that don't have sql uninstall, for example I have this sql install

    SET @t4=0;
    SELECT (@t4:=configuration_group_id) as t4
    FROM configuration_group
    WHERE configuration_group_title= 'Linkconnector Configuration';
    DELETE FROM configuration WHERE configuration_group_id = @t4;
    DELETE FROM configuration_group WHERE configuration_group_id = @t4;

    INSERT INTO configuration_group VALUES ('', 'Linkconnector Configuration', 'Set Linkconnector Options', '1', '1');
    UPDATE configuration_group SET sort_order = last_insert_id() WHERE configuration_group_id = last_insert_id();

    SET @t4=0;
    SELECT (@t4:=configuration_group_id) as t4
    FROM configuration_group
    WHERE configuration_group_title= 'Linkconnector Configuration';

    INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function)
    VALUES
    ('', 'Linkconnector Account', 'LINKCONNECTOR_ID', '00001', 'Enter your Linkconnector account number', @t4, 1, NOW(), NOW(), NULL, NULL),
    ('', 'Merchant ID', 'MERCHANT_ID', '1', 'Enter your Linkconnector Merchant ID account number', @t4, 1, NOW(), NOW(), NULL, NULL),
    ('', 'Campaign ID', 'CAMPAIGN_ID', '1', 'Enter your Linkconnector Campaign ID account number', @t4, 1, NOW(), NOW(), NULL, NULL);


    how can I delete it?

    And when I will have another mod with only sql install?
    Can you give me a guide to how create a sql uninstall file?

    Please

  2. #2
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    976
    Plugin Contributions
    6

    Default Re: to delete a sql patch of a mod

    I also would like solution to this, and also to how one determines whether an sql file has been installed.

    I recently had to rebuild my shop and due to interruption have lost track of what I installed.

  3. #3
    Join Date
    May 2007
    Location
    Italy
    Posts
    438
    Plugin Contributions
    0

    Default Re: to delete a sql patch of a mod

    Quote Originally Posted by dw08gm View Post
    I also would like solution to this, and also to how one determines whether an sql file has been installed.

    I recently had to rebuild my shop and due to interruption have lost track of what I installed.
    I am agree on all

  4. #4
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    976
    Plugin Contributions
    6

    Default Re: how to delete a sql patch of a mod?

    Bump

    Anyone please.

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: how to delete a sql patch of a mod?

    More or less you have to go into phpMyAdmin and do the opposite of what the install sql did ...

    If it inserts things into the database tables then you need to remove them ...

    Be sure to backup your database before attempting the cleanup of something like this ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    976
    Plugin Contributions
    6

    Default Re: how to delete a sql patch of a mod?

    Thanks Ajeh

    I would need to know what the opposing commands are and how to use same.

    eg
    INSERT?
    SET?
    CREATE?

    Can you point to a good online reference in this regard.

  7. #7
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: how to delete a sql patch of a mod?

    You can find SQL Tutorials here. But this is not an area into which to go lightly. Manipulating databases is specialist stuff and while Zen Cart files can be easily replaced, data is gone forever unless you have a good backup.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  8. #8
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    976
    Plugin Contributions
    6

    Default Re: how to delete a sql patch of a mod?

    Thanks Kuroi

    Having baulked at the 3000-odd page Mysql user manual, this is just what I was after - a gradual introduction.

 

 

Similar Threads

  1. how do install a sql patch?
    By zmtak in forum General Questions
    Replies: 2
    Last Post: 9 Dec 2011, 10:36 AM
  2. Trying to install SQL Patch for Admin Profiles mod
    By SaMortensen in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 18 Oct 2008, 02:58 AM
  3. How do i install sql patch?
    By humbll in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 26 May 2007, 06:54 AM
  4. installing grid mod sql patch
    By sveetcouture in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 4 Jul 2006, 12:10 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR