I was having a problem while registering a new user in Code Igniter and it failed. I some how managed to echo the query and when i run it manually on phpmyadmin, it gives me the following error
#1205 – Lock wait timeout exceeded; try restarting transaction
I was having a problem while registering a new user in Code Igniter and
Share
MySQL error 1205 can occur when your application (in this case, PHP) dies in the middle of a transaction and the connection is not closed.
Restarting MySQL will fix the problem, but you should try finding out where the error is in your code. It should be in the PHP error log. If Code Igniter was able to catch the error (unlikely, given the circumstance) then it may be in
application/logs.If execution time might be the culprit, check PHP: Runtime Configuration. Specifically:
max_execution_timeand, additionally,memory_limitIncreasing these values (the amount of which, you’ll have to experiment with) should eliminate script execution time as a potential issue. You can set these in your php.ini. Since you’re using xampp, the location will be either
<installation drive/directory>\xampp\phpor<installation drive/directory>\xampp\apache\bin.Hopefully this helps you resolve your question.