question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Production mode locking table

See original GitHub issue

Connecting to a MySQL 5.5.49 database using DBeaver 4.0.3 on Mac OS 10.12.3.

My table is being locked by running a select statement.

  1. Use mysqldump to dump a table
  2. Connect to MySQL in Production mode
  3. Run simple select statement select * from mydb.sdp_test;
  4. Attempt to import the same table using command line mysql -umy_username -pmy_password mydb < sdp_test.sql The import hangs.
  5. Query active processes:
SELECT * FROM INFORMATION_SCHEMA.PROCESSLIST where command != 'Sleep';
ID	USER		HOST		DB	COMMAND	TIME	STATE					INFO
1,142	my_username	localhost	mydb	Query	2	Waiting for table metadata lock		DROP TABLE IF EXISTS `sdp_test`

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
serge-ridercommented, Apr 1, 2017

SELECT queries will activate Commit/Rollback in the next version.

0reactions
serge-ridercommented, Apr 4, 2017

Yes. Now SELECT queries triggers Commit/Rollback command activation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dbeaver table locking - Stack Overflow
I'm using DBeaver 5.0.5. I created a database connection and setted it to "production" type ...
Read more >
Resolve blocking problem caused by lock escalation - SQL ...
Lock escalation is the process of converting many fine-grained locks (such as row or page locks) to table locks. Microsoft SQL Server ...
Read more >
Database Locking: What it is, Why it Matters and What to do ...
This paper sheds light on the nature of database locking and how it varies between ... tables with row counts in the order...
Read more >
Mode locking - Wikipedia
Mode locking is a technique in optics by which a laser can be made to produce pulses of light of extremely short duration,...
Read more >
Chapter 5 Active Mode Locking
for some mode-locked laser polarization dynamics will become important. ... Table 5.1 shows that soliton formation in actively mode-locked lasers may.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found