Skip to main content

mysql Lock wait timeout exceeded; try restarting transaction

Comments

7 comments

  • cPRex Jurassic Moderator
    Hey there! It doesn't sound like this would be related to the cPanel tools on the machine, but we may still be able to help you check MySQL. If you run "mysqladmin proc status" while you run that Alter Table command, do you see anything odd with the database server that could be a clue? Do you see anything else in the MySQL error logs on the system?
    0
  • max101
    The only thing i see in the error logs located in log-error=/var/lib/mysql/host.myforum123123.com.err is: 2023-03-31 20:06:07 0 [Note] InnoDB: To roll back: 12 transactions, 22574194 rows 2023-03-31 20:06:22 0 [Note] InnoDB: To roll back: 12 transactions, 22565337 rows 2023-03-31 20:06:37 0 [Note] InnoDB: To roll back: 12 transactions, 22556422 rows 2023-03-31 20:06:52 0 [Note] InnoDB: To roll back: 12 transactions, 22547557 rows 2023-03-31 20:07:07 0 [Note] InnoDB: To roll back: 12 transactions, 22538944 rows 2023-03-31 20:07:22 0 [Note] InnoDB: To roll back: 12 transactions, 22530235 rows 2023-03-31 20:07:37 0 [Note] InnoDB: To roll back: 12 transactions, 22521685 rows 2023-03-31 20:07:52 0 [Note] InnoDB: To roll back: 12 transactions, 22513615 rows 2023-03-31 20:08:07 0 [Note] InnoDB: To roll back: 12 transactions, 22505298 rows 2023-03-31 20:08:22 0 [Note] InnoDB: To roll back: 12 transactions, 22496413 rows This is what i saw when i ran mysqladmin proc status while running the alter command Does Waiting for table metadata lock have anything to do with it?
    0
  • cPRex Jurassic Moderator
    I'm honestly not sure on this one - that indicates that *something* is locking the database. If you restart MySQL an d then run that command immediately after, does that perform better?
    0
  • max101
    I tried that. Restarted, right after put the query but i still get that same message Lock wait timeout exceeded; try restarting transaction I dont know what is locking the database.
    0
  • cPRex Jurassic Moderator
    If you'd like to submit a ticket to our team we'd be happy to take a look for you!
    0
  • max101
    I didn't know I could submit a ticket. This will be my first time. thanks, i will do that.
    0
  • cPRex Jurassic Moderator
    Absolutely - we do encourage people to reach out to the partner where they purchased their cPanel license from first, but we're happy to look at any dedicated server.
    0

Please sign in to leave a comment.