Warning (!)

Wiki Cloud Migration Deadline


On January 8th, 2024 the University of Iowa Wiki hosted at https://wiki.uiowa.edu will be shut down permanently. If you would like to continue using Confluence (Wiki) in the Cloud, you will need to request licenses by filling out this Workflow form if you haven't done so already.

For more information and other options for your content, please visit the Wiki Service Change Options and FAQs page. Your content from https://wiki.uiowa.edu will be available for migration upon request for two years (until 1/8/2026).

Child pages
  • Production Database Protocol

This is a guide to the protocol that should be used when interacting with the production StarExec database from the command line.

You should practice using this protocol on StarDev to make sure you know how to rollback changes before you attempt to interact with the production database.


After starting a connection to the database from the command-line you should ALWAYS run:

SET autocommit=0;


By default any changes you make to the database cannot be reverted because MySQL automatically commits all changes immediately. By setting autocommit=0 you can rollback any mistakes you make. If you make a mistake you can always undo your command with:


Whenever you want to make changes you should use this construct:


If you make a mistake when you run your (UPDATE, INSERT, etc.) command you can use ROLLBACK to undo changes back to the START TRANSACTION statement.

You have to use the START TRANSACTION...COMMIT construct so that ROLLBACK won't roll back every single change you made during your connection. You should use one START TRANSACTION...COMMIT construct for every SQL statement that will change the database. You will want to check that the correct number of rows were changed in the correct way before running COMMIT. You can use SELECT statements before your commit to make sure that the row(s) were changed in the correct way.