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 8523821
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:31:12+00:00 2026-06-11T07:31:12+00:00

When I run a Flask application which is using Flask-SQLAlchemy, it seems that Flask-SQLAlchemy

  • 0

When I run a Flask application which is using Flask-SQLAlchemy, it seems that Flask-SQLAlchemy is holding a session and when I issue a MySQL command, like alter table add column, in MySQL client terminal, the commands cannot be executed until I quit the Flask application.

Does anybody have similar experience? How can I issue commands on MySQL client without interrupting the Flask application?

  • 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-06-11T07:31:13+00:00Added an answer on June 11, 2026 at 7:31 am

    You may want to look at this question SQL Alchemy Relationship loader leaves a lock on table?

    What you’ll need to do is subclass flask.ext.sqlalchemy.SQLAlchemy and override the apply_driver_hacks method to pass through the additional keyword argument isolation_level='READ <some level>':

    from flask.ext.sqlalchemy import SQLAlchemy
    
    class UnLockedAlchemy(SQLAlchemy):
        def apply_driver_hacks(self, app, info, options):
            if not "isolation_level" in options:
                options["isolation_level"] = "READ COMMITTED"  # For example
            return super(UnLockedAlchemy, self).apply_driver_hacks(app, info, options)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a Flex application that will need run under two different deployment scenarios:
I have an application which needs to run several other applications in chain. I
I'm writing a Python web application using Flask. My application establishes a connection to
It is an application that has been built using seam 2.2 and it is
In a web-application (using Flask), I get the following error: Unable to retrieve the
I'm developing an application using Flask . I want a quick, automated way to
Is it true that in the flash/air player the actionscripts are all run in
I run command: sudo apt-get install phpmyadmin to install phpMyAdmin. Then I enter address:
I run the following command to link the different files in my project. /opt/gcc-4.7-cilkplus/bin/gcc
I'm trying to make a vote/poll application in Flash using Actionscript 3. Is there

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.