Showing entries 1 to 4
Displaying posts with tag: mysql-error (reset)
MYSQL – Deadlock found when trying to get lock; try restarting transaction

Execute “Show Engine InnoDB Status;” query analyze the result in “Transaction” section, find out problematic queries.

Now next step is to how to avoid this problem, and here is a solution:

Deadlocks are a classic problem in transactional databases, but they are not dangerous unless they are so frequent that you cannot run certain transactions at all. Normally, you must write your applications so that they are always prepared to re-issue a transaction if it gets rolled back because of a deadlock.

  • Always be prepared to re-issue a transaction if it fails due to deadlock. Deadlocks are not dangerous. Just try again.
  • Keep transactions small and short in duration to make them less prone to collision.

Reference :  …

[Read more]
Error: 1034 HY000 Incorrect key file for table /tmp/#sql_actor_return; try to repair it

It mentions in the message that you can try to repair it. Also, if you look at the actual FILEPATH you get, you can find out more:

  • if it is something like /tmp/#sql_actor_return it means that MySQL needs to create a temporary table because of the query size. It stores it in /tmp, and that there is not enough space in your /tmp for that temporary table. increase the tmp_table_size variable and /tmp/ partition size
  • If it contains the name of an actual table instead, it means that this table is very likely corrupted and you should repair it using REPAIR TABLE
MySQL ERROR 1114 : The table is full

If a table-full error occurs, it may be that the disk is full or that the table has reached its maximum size. The effective maximum table size for MySQL databases is usually determined by operating system constraints on file sizes, not by MySQL internal limits.

Limits on Table size : The following table lists some examples of operating system file-size limits. This is only a rough guide and is not intended to be definitive.

If you do encounter a full-table error, there are several reasons why it might have occurred:

  • The disk might be full.
  • The InnoDB storage engine maintains InnoDB tables within a tablespace that can be created from several files. This enables a table to exceed the maximum individual file size , check InnoDB tablespace (ibdata1)
  • You are using MyISAM tables on an operating …
[Read more]
MySQL ERROR 2002: [2002] Resource temporarily unavailable (trying to connect via unix:///var/lib/mysql/mysql.sock)

One day on production server I encountered this error message, So I found out a solution for it as:

There are multiple reasons, listed below:

  1. You’ve run out of memory available to MySQL.This is the most likely problem you’re facing. Each connection in MySQL’s connection pool requires memory to function, and if this resource is exhausted, no further connections can be made. Of course, the memory footprints and maximum packet sizes of various operations can be tuned in your equivalent to my.cnf if you discover this to be an issue.

You can calculate MySQL memory using this tool – http://www.mysqlcalculator.com/

This shows maximum size a MySQL should use in your environment, in my case it’s a dedicated MYSQL …

[Read more]
Showing entries 1 to 4