Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 826803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:28:21+00:00 2026-05-15T03:28:21+00:00

I’d like my program to be able to install plugins, and rollback all the

  • 0

I’d like my program to be able to install plugins, and rollback all the changes made if an error occurs. So I create a transaction that keeps all the things that were added while installing the plugin. The problem is that the plugin may want to create tables, and doing so automatically commits the current transaction in MySQL.

See Statements That Cause an Implicit Commit on MySQL web site.

Any idea on how I could do it?

I thought of using temporary tables as they are not automatically committed, unless they are using too much memory, but it looks like temporary tables cannot be rolled back anyway (and I haven’t found a way to convert them to permanent tables).

I just found out about “save points“, but I don’t really understand how/when it should be used nor if it can help me achieve what I want.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T03:28:22+00:00Added an answer on May 15, 2026 at 3:28 am

    Savepoints aren’t the answer; they are committed when the transaction is committed. A savepoint is an intermediate point in a transaction to which you can roll back.

    Some DBMS do provide you with full transaction support on DDL (data definition language) statements, such as CREATE TABLE. One such is IBM Informix Dynamic Server.

    Many DBMS do not provide you with such support. One such is Oracle.

    Basically, you have to decide whether it is better to use/support MySQL and live without transaction support around DDL statements or whether to migrate to another DBMS that provides the functionality you need. There is, in theory, a third option – add support for transactions around DDL in MySQL. That might be a little difficult, though (but immensely worthwhile for the MySQL community as a whole if you do it right).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 477k
  • Answers 477k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer import java.util.UUID; UUID uuid = UUID.randomUUID(); String randomUUIDString = uuid.toString(); May 16, 2026 at 5:15 am
  • Editorial Team
    Editorial Team added an answer As you state, "is_convertible only works for complete types". This… May 16, 2026 at 5:15 am
  • Editorial Team
    Editorial Team added an answer Such a transaction is quite simple to implement with AppEngine.… May 16, 2026 at 5:15 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.