Jump to content

[SOLVED] Locking mysql tables with php


pernest

Recommended Posts

Hi

 

BACKGROUND:

I have multiple instances of the same php script running in a WAMP environment. The script contains mysql queries to lock certain tables in the database. I'm getting some very odd behaviour which would seem to suggest that the locks are not working, and that one instance of the script is reading from a table that another instance of the script should have a write lock on.

 

ACTUAL QUESTION:

Do two instances of the same php script running through WAMP get totally independent locks on tables in a database?

 

I didn't post this question in the mysql forum because although it is about locking tables, it is about locking tables from the point of view of a php script. Please move it if I have posted in the wrong forum.

 

Cheers

 

Paul

Link to comment
https://forums.phpfreaks.com/topic/176697-solved-locking-mysql-tables-with-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.