I want to update a table using the following query :
UPDATE `time_sheet_list_log` SET `entry_status` = 'History' WHERE `entry_status` = 'Active' AND `transaction_type` = 'Delete' AND `employee_id` = '77'
But I keep getting the following error :
A Database Error Occurred
Error Number: 1205
Lock wait timeout exceeded; try restarting transaction
UPDATE `time_sheet_list_log` SET `entry_status` = 'History' WHERE `entry_status` = 'Active' AND `transaction_type` = 'Delete' AND `employee_id` = '77'
Filename: C:\Xampp_1\htdocs\timesheet\system\database\DB_driver.php
Line Number: 330
I have to restart mysql DB for it accept. please advise what am I doing wrong?