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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:36:55+00:00 2026-06-10T13:36:55+00:00

According to the MySQL documentation, if any session holds a Read lock for a

  • 0

According to the MySQL documentation, if any session holds a Read lock for a table, then another session requests a Write lock for the same table, the Write lock must be given and the Read lock waits.

I tried it, connected to the MySQL server from two consoles (Windows 7). Locked the table A from the first console (read lock), then tried to lock the same table from the second console (write lock), but the second console just waits till the first lock releases.

Who is wrong: me or the documentation? (MySQL Server version 5.5.27)

The citation from the MySQL official documentation:

“WRITE locks normally have higher priority than READ locks to ensure
that updates are processed as soon as possible. This means that if one
session obtains a READ lock and then another session requests a WRITE
lock, subsequent READ lock requests wait until the session that
requested the WRITE lock has obtained the lock and released it.”

  • 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-10T13:36:57+00:00Added an answer on June 10, 2026 at 1:36 pm

    It’s written right there:

    This means that if one session obtains a READ lock and then another session requests a WRITE lock, subsequent READ lock requests wait until the session that requested the WRITE lock has obtained the lock and released it.

    The READ locks that were already obtained won’t be broken mid-operation. That would cause havoc. It’s the subsequent requests that get to wait.

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

Sidebar

Related Questions

According to the MySQL documentation regarding Optimizing Queries With Explain : * ALL: A
According to connects documentation the session should expire when the browser is closed: By
I want to alter an over 100Gb MySQL table. According to manual MySQL is
According to the PHP documentation, mysql_insert_id takes the last inserted id from the mysql
I use a partitioned table with a large amount of data. According to MySQL
according to the reference (http://dev.mysql.com/doc/refman/5.5/en/create-table.html), MySQL 5.5 now supports table and column comments of
According to the MySQL documentation: As a general rule, you should never assign a
According to the MySQL manual : For large tables, table locking is often better
According to mysql document Encoding with a 128-bit key length is used, but you
According to the MySQL Certification Guide, when --tab option is used, a SELECT ...

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.