[备忘] Mysql操作出现Error writing file '/tmp/MYAkvdjr'错误
2017-12-29 13:17
621 查看
今天下午改了一下自己正在写的LazyCluster聚类脚本,从rcpt数据库里导出mx记录,在select语句后面加了一个order
by条件,结果脚本跑了一阵子就报错了:
Traceback (most recent call last):
File "./contCluster.py", line 621, in <module>
main()
File "./contCluster.py", line 600, in main
mailscnt=toCluster_rcptdb()
File "./contCluster.py", line 500, in toCluster_rcptdb
cursor.execute(sql)
File "build/bdist.linux-i686/egg/MySQLdb/cursors.py", line 166, in execute
File "build/bdist.linux-i686/egg/MySQLdb/connections.py", line 35, in defaulterrorhandler
_mysql_exceptions.InternalError: (3, "Error writing file '/tmp/MYAkvdjr' (Errcode: 28)")
一查:
$ perror 28
OS error code 28: No space left on device
实在不懂,于是Google了一下发现原来是order by搞的鬼:当使用order by来排序时,Mysql需要一些临时空间来存储东东,此时若系统空间不足,就会出现往临时文件写内容时报错的现象,于是报出了Error writing file '/tmp/**' (Errcode: 28)之类的错误提示。
算了,去掉那个order by条件了,对于这么庞大的表格一sort开销也太大了。。。
by条件,结果脚本跑了一阵子就报错了:
Traceback (most recent call last):
File "./contCluster.py", line 621, in <module>
main()
File "./contCluster.py", line 600, in main
mailscnt=toCluster_rcptdb()
File "./contCluster.py", line 500, in toCluster_rcptdb
cursor.execute(sql)
File "build/bdist.linux-i686/egg/MySQLdb/cursors.py", line 166, in execute
File "build/bdist.linux-i686/egg/MySQLdb/connections.py", line 35, in defaulterrorhandler
_mysql_exceptions.InternalError: (3, "Error writing file '/tmp/MYAkvdjr' (Errcode: 28)")
一查:
$ perror 28
OS error code 28: No space left on device
实在不懂,于是Google了一下发现原来是order by搞的鬼:当使用order by来排序时,Mysql需要一些临时空间来存储东东,此时若系统空间不足,就会出现往临时文件写内容时报错的现象,于是报出了Error writing file '/tmp/**' (Errcode: 28)之类的错误提示。
算了,去掉那个order by条件了,对于这么庞大的表格一sort开销也太大了。。。
相关文章推荐
- MySQL启动错误:Error writing file '/var/run/mysqld/mysqld.pid' (Errcode: 28)
- mysql错误:ERROR 29 (HY000): File '/tmp/cun' not found (Errcode: 13)
- oracle 12C RAC启动实例时报ORA-00206: error in writing (block 1, # blocks 1) of control file错误处理
- Android项目运行junit测试类时出现错误Internal Error (classFileParser.cpp:3494)的解决办法
- linux 内核编译时出现scripts/sign-file.c:23:30: fatal error: openssl/opensslv.h错误的解决办法
- 重装mysql后出现"cannot create windows service for mysql.error:0"错误
- Hibernate操作MySQL使用reserved word引发错误: “You have an error in your SQL syntax; check the manual that co
- 编译Busybox时,出现错误fatal error: curses.h: No such file or directory
- 出现PNG文件错误的解决方案AAPT err(Facade for 1773557322): libpng error: Not a PNG file
- 备份MySQL出现Can’t open file when using LOCK TABLES错误的解决方法
- MySQL启动出现The server quit without updating PID file错误解决办法
- linux下vi编辑某文件时,操作出现 错误提示: E325: ATTENTION 2, Found a swap file by the name ".p1.c.swp"
- MYSQL启动后报:ERROR! The server quit without updating PID file错误的问题解决
- eclipse出现错误An error has occurred. See the log file
- Jupyter运行时出现下面的错误:Unexpected error while saving file: arma/Untitled.ipynb [Errno 13] Permission denied:
- 安装完MySQL 5.1,在最后配置启动服务时,出现could not start the service MySQL.Error:0 错误
- 我的是CentOS6.3+MySQL5.1.57。重启了一次服务器后,使用 mysql -u root -p登陆是出现下面的错误: ERROR 2002 (HY000): Can't connect
- 安装Win7和Ubuntu12.04双系统后,意外删除Ubuntu12.04引导文件,出现error:unknown filesystem;grub rescue>错误的解决方案
- python3.5连接MySQL出现Cannot open include file: 'config-win.h': No such file or directory 错误解决办法
- (转)安装mysql,在./configure时出现错误:error: No curses/termcap library found的解决办法