MySql SQLException: Can't create/write to file问题的解决办法
来源:互联网 发布:心理学电脑软件 编辑:程序博客网 时间:2024/05/29 14:42
今天突然得到服务器上的列表没有数据,感觉非常差异,赶紧查看database,结果数据还在,那就奇怪了,查询jdbc的sql语句打印出来如下:
SELECT r.* FROM TABLE_1 r LEFT JOIN TABLE_2 u ON r.uid=u.id WHERE 1=1 AND r.sh='1' AND r.us='1' ORDER BY r.sh desc, u.login_time DESC Limit 0,20
将上述语句在phpmyadmin中执行后,发现报错:
java.sql.SQLException: Can't create/write to file 'C:\DOCUME~1\138113~3\LOCALS~1\Temp\#sql6e80_1905f7_3.MYI'
感觉非常纳闷。
随机就修改mysql的配置文件,重新指定临时目录!
1、在mysql安装目录下找到文件
my.ini文件,用记事本打开后,找到标签[mysqld] (大概就在71行下边)
指定一个临时目录:
tmpdir="X:\mysql\temp"
然后保存该文件(X代表盘符).
2、将该目录文件夹加入到杀毒软件的排除列表里。
3、重启mysql服务,就OK了!
0 0
- MySql SQLException: Can't create/write to file问题的解决办法
- MySQL Can't create/write to file 问题的解决
- MySQL Can't create/write to file 问题的解决
- mysql 出现 Can't create/write to file 的错误
- MySQL Can't create/write to file 'c:/windows/temp/#sql_2d0_0.MYD' 问题的解决
- 解决MYSQL出现Can't create/write to file '#sql_5c0_0.MYD'的问题
- MySQL出现Can’t create/write to file ‘C:\WINDOWS\TEMP\#sql_718_0.MYD(Errcode: 17)解决办法
- mysql启动报can't create/write to file 'var/run/mysqld/mysqld.pid 错误解决办法
- Mysql 出错,Can't create/write to file C:\WINDOWS\TEMP\#sql_1588_0.MYI(Errcode:13)的解决办法
- mysql 备份Can't create/write to file
- ubuntu mysql 数据库 Can't create/write to file
- mysql into outfile ERROR : Can't create/write to file
- Mysql ERROR 1 (HY000): Can't create/write to file
- mysql Can't create/write to file 'C:\WINDOWS\...
- 解决MYSQL出现Can't create/write to file....
- 解决Mysql ERROR 1 (HY000): Can't create/write to file 问题
- MySQL使用中产生的Error:Can't create/write to file错误
- MySQL下“Can’t create/write to file xxx (Errcode: 13)”错误的解决方法
- Leetcode# 148 Sort List
- java中打印数组的5种方法
- Arctic Network (POJ 2349)
- Bootstrap组件之导航
- struts框架中的result
- MySql SQLException: Can't create/write to file问题的解决办法
- csharp: Export or Import excel using MyXls
- csharp: Export or Import excel using MyXls
- HttpClient结合Struts2开发移动应用后台
- hdu5317&15年hdu多校集训(3)b题
- Java抽象类总结
- Swift入门(四)——可选类型(Optionals)与断言(Assert)
- ActionBar、ActionMode样式设定解析
- nios软核cpu中架构类shell的一种解决方式『linux 系统函数调用的方法』