February 2018
Intermediate to advanced
510 pages
16h 10m
English
If the mysql does not have enough memory to store the entire request of the query issued by the MySQL client program, the server throws the following error:
mysql: Out of memory at line 42, 'malloc.c'mysql: needed 8136 byte (8k), memory in use: 12481367 bytes (12189k)ERROR 2008: MySQL client ran out of memory
In order to fix the problem, we must first check if the query is correct. Do we expect the query to return so many rows? If not, we should correct the query and execute it again. If the query is correct and needs no correction, we can connect mysql with the --quick option. Using the --quick option results in the mysql_use_result() C API function for fetching the result set. The function adds more load on the server and ...
Read now
Unlock full access