1. 程式人生 > >MySQL Fix for Error Code: 1205. Lock wait timeout exceeded; try restarting transaction

MySQL Fix for Error Code: 1205. Lock wait timeout exceeded; try restarting transaction

進入mysql:mysql -uroot -p

修改引數:

set innodb_lock_wait_timeout =500

set global  innodb_lock_wait_timeout =500