0

There are two different applications with different functions and each one of them are updating the database, but the problem is when the first one tries to update the database it gets interrupted by the second and the opposite. Its a multi-user environment , i assume splitting the database its a good option but is there something else to do? and if someone could help me with splitting part if there's no other option?

please help and thank you.

1 Answers1

-1

You can lock table before the process want to operate the database. Then unlock it after complete operation.

LOCK TABLES t1 READ;
select * from t1;
Unlock TABLES t1;
Matt Wilko
  • 26,994
  • 10
  • 93
  • 143
laojianke
  • 44
  • 4