mysql Got error 28 from storage engine (insufficient disk space) Problem reporting, problem analysis and problem solving

Project scenario:

提示:这里简述项目相关背景:

Error log:
[ code: 500 ] ### Error querying database. Cause: java.sql.SQLException: Got error 28 from storage engine ### The error may exist in URL [jar:file:/www/wwwroot/huidaoyun/huidaoyun.jar!/mapper/device/device/DeviceDao.xml] ### The error may involve defaultParameterMap ### The error occurred while setting parameters ### SQL: SELECT dd.*, ddc.name AS category_name, ddf.name AS country_category_name, ddb.name AS brand_name, ddl.name AS location_name, su.name AS manager_name, sd.name AS dept_name, csd.name AS company_name, cc.name AS supplier_name FROM device_device dd LEFT JOIN device_device_category ddc ON dd.category_id = ddc.id LEFT JOIN device_country_category ddf ON dd.country_category_id = ddf.id LEFT JOIN device_device_brand ddb ON dd.brand_id = ddb.id LEFT JOIN device_device_location ddl ON dd.location_id = ddl.id LEFT JOIN sys_user su ON dd.manager_id = su.user_id LEFT JOIN sys_dept sd ON dd.dept_id = sd.dept_id LEFT JOIN sys_dept csd ON dd.company_id = csd.dept_id LEFT JOIN com_commercia cc ON dd.supplier_id = cc.commercia_id WHERE dd.deleted_flag = ‘N’ ORDER BY repair_count DESC LIMIT ?,? ### Cause: java.sql.SQLException: Got error 28 from storage engine ; uncategorized SQLException; SQL state [HY000]; error code [1030]; Got error 28 from storage engine; nested exception is java.sql.SQLException: Got error 28 from storage engine: http://api.huidaoyun.com/home/sum/repair_order


Problem Description

提示:这里描述项目中遇到的问题:
The error log information output by the front-end page is as follows:

[ code: 500 ] 
 ### Error querying database. Cause: java.sql.SQLException: Got error 28 from storage engine ### The error may exist in URL [jar:file:/www/wwwroot/huidaoyun/huidaoyun.jar!/mapper/device/device/DeviceDao.xml] ### The error may involve defaultParameterMap
 ### The error occurred while setting parameters 
 ### SQL: SELECT dd.*, ddc.name AS category_name, ddf.name AS country_category_name, ddb.name AS brand_name, ddl.name AS location_name, su.name AS manager_name, sd.name AS dept_name, csd.name AS company_name, cc.name AS supplier_name FROM device_device dd LEFT JOIN device_device_category ddc ON dd.category_id = ddc.id LEFT JOIN device_country_category ddf ON dd.country_category_id = ddf.id LEFT JOIN device_device_brand ddb ON dd.brand_id = ddb.id LEFT JOIN device_device_location ddl ON dd.location_id = ddl.id LEFT JOIN sys_user su ON dd.manager_id = su.user_id LEFT JOIN sys_dept sd ON dd.dept_id = sd.dept_id LEFT JOIN sys_dept csd ON dd.company_id = csd.dept_id LEFT JOIN com_commercia cc ON dd.supplier_id = cc.commercia_id WHERE dd.deleted_flag = 'N' ORDER BY repair_count DESC LIMIT ?,?
 ### Cause: java.sql.SQLException: Got error 28 from storage engine ; uncategorized SQLException; SQL state [HY000]; error code [1030]; Got error 28 from storage engine; nested exception is java.sql.SQLException: Got error 28 from storage engine: http://api.huidaoyun.com/home/sum/repair_order

A screenshot is shown below:
insert image description here


Cause Analysis:

Tip: Fill in the analysis of the problem here:

The above error message appears when loading the data list on the front-end page. The system is running in the environment of a virtual machine server, so we need to consider it from the direction of the virtual machine. The first step: Check the server
space (run this command in the root directory)
df - h Check the disk space of the server.
insert image description here
The query results show that the disk where the database is located is fine, so we speculate that the temporary directory space used by the database may not be enough to use, resulting in the system being unable to execute the SQL statement.


solution:

Tip: Fill in the specific solution to this problem here:
Workaround:

1. Empty the /tmp directory
2. Or modify the tmpdir parameter in my.cnf
3. Point tmpdir to a directory with a large hard disk space, that is, a directory with enough space.

Guess you like

Origin blog.csdn.net/YHLSunshine/article/details/128905622