ERROR 1213 (40001): Deadlock found when trying to get lock; try restarting trans
action我打开两个执行窗口,执行两个一样的的存储过程。只是参数不同。

解决方案 »

  1.   

    存储过程不方便贴、因为我在程序中发现在这个问题。后来发现不是程序。直接在mysql执行也有问题。
      

  2.   

    show processlist; 看是什么死锁。
      

  3.   

    Please take out the result of this command:show innodb status;
      

  4.   

    In MySQL 5.0, this is a deprecated synonym for SHOW ENGINE INNODB STATUS .
    In MySQL 5.1, this is a deprecated synonym for SHOW ENGINE INNODB STATUS ...