I want to change innodb_lock_wait_timeout MySQL variable. I tried using this command
set innodb_lock_wait_timeout=900;
but when I ran this I got the following error:
ERROR 1238 (HY000): Variable 'innodb_lock_wait_timeout' is a read only variable
Default @@innodb_lock_wait_timeout is 50 but I want to change it to 900.
How can I do this?