[mysqld]
skip-log-bin
sync_binlog = 0
$query = $mysql->query('SELECT COUNT(*) as count FROM `monitor_two` WHERE `date`='сегодня' AND `bysy`='нет'');
skip-log-bin
sync_binlog = 0
CONSTRAINT `fk_idTeam`
FOREIGN KEY (`idTeam`)
REFERENCES `Group` (`id`)
ON DELETE RESTRICT
ON UPDATE RESTRICT,
LOCK TABLES tbl_name WRITE
, тогда для других потоков блокируется даже чтение.