Locking mysql tables with php


Posted on 16th Feb 2014 07:03 pm by admin

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

No comments posted yet

Your Answer:

Login to answer
348 Like 52 Dislike
Previous forums Next forums
Other forums

PHP, jAVASCRIPT setting input values, why isn't it working?
Hi:

I am calling this javascript:
<script language="javascript">

Image resize
Hi again fellers

I managed to sort out the issues with the folder,

Final hurdle is th

Date/Time and Checkbox
Hi Everyone,

I am trying to figure out how to insert the current date and tim

ok i need to join all this pages to make 1 neat code
i have 5 pages that make up my tv guide it works 100% but i want to make it 1 page if i can or 2, i

SCRIPT ERROR
Here is the CONTACT FORM I made for our website:

<form id="form1" name="

$_FILES array
Ok,

I just started experimenting with PHP today. My goal right now is to have people be able

Any help with my email script?
I have an email script, I have not tested it, although someone tested it for me and said it worked f

Help with php code
Hello, can anyone tell me why this php word trap fails to work,
and the trigger words get blow r

Help with some dates
I have a list of dates in an array:

$mondays = array(
strtotime("October 12, 2009

Recode Abap Dynpro into Web Dynpro
Hi All,
A client has asked us to look at rearchitecting a custom transaction that was developed

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash