解决:CentOS下MySQL执行select ... into outfile ...: Can't create/write to file '...' (Errcode: 13)
来源:互联网 发布:淘宝怎么注册卖家 编辑:程序博客网 时间:2024/05/18 12:44
原因:selinux阻止写入操作
解决:vi /etc/selinux/config
# This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:# enforcing - SELinux security policy is enforced.# permissive - SELinux prints warnings instead of enforcing.# disabled - No SELinux policy is loaded.SELINUX=enforcing# SELINUXTYPE= can take one of these two values:# targeted - Targeted processes are protected,# mls - Multi Level Security protection.SELINUXTYPE=targeted将:SELINUX=enforcing 改为 SELINUX=disabled
SELINUX=enforcing 改为 SELINUX=disabled
保存并且重启服务器:reboot
再次执行命令:select ... into outfile ...
则执行成功:Query OK, 0 rows affected
注:关闭selinux可能会带来安全问题暂时还没有深入研究(建议操作完成后,改回配置文件)
阅读全文
0 0
- 解决:CentOS下MySQL执行select ... into outfile ...: Can't create/write to file '...' (Errcode: 13)
- CentOS 下 MySQL运行 select* from xxx into outfile : Can't create/write to file xxx (Errcode: 13)
- mysql into outfile ERROR : Can't create/write to file
- MySQL into outfile 问题解决:ERROR 1 (HY000): Can't create/write to file
- MySQL下“Can’t create/write to file xxx (Errcode: 13)”错误的解决方法
- MySQL下“Can’t create/write to file xxx (Errcode: 13)”错误的解决方法
- MySQL下“Can’t create/write to file xxx (Errcode: 13)”错误的解决方法
- SELECT ... INTO OUTFILE报错ERROR 1 (HY000) at line 1: Can't create/write to file...
- 解决Mysql错误:Can't create/write to file 'C:\WINDOWS\TEMP\#sql_1344_0.MYD' (Errcode: 17)
- 解决Mysql错误:Can't create/write to file 'C:\WINDOWS\TEMP\#sql_1344_0.MYD' (Errcode: 17)
- 解决Mysql错误:Can't create/write to file 'C:\WINDOWS\TEMP\#sql_1344_0.MYD' (Errcode: 17)
- ERROR 1 (HY000): Can't create/write to file'/' (Errcode: 13)错误解决
- ERROR 1 (HY000): Can't create/write to file'/' (Errcode: 13)错误解决
- ERROR 1 (HY000): Can't create/write to file'/' (Errcode: 13)错误解决
- MySQL出现Can’t create/write to file ‘C:\WINDOWS\TEMP\#sql_718_0.MYD(Errcode: 17)解决办法
- Mysql 出错,Can't create/write to file C:\WINDOWS\TEMP\#sql_1588_0.MYI(Errcode:13)的解决办法
- mysqldump: Got error: 1: Can't create/write to file '/usr/local/mysql/data/bak/t4.txt' (Errcode: 13
- MySQL Can't create/write to file 问题的解决
- 【Android学习笔记系列】AsyncTask、BaseAdapter整合异步加载用例(通过解析JSON格式数据加载网络图片内容)
- POI shiftRows后合并单元格丢失的解决办法
- selenium通过add_cookie()添加cookie
- EcmaScript 6 箭头函数
- Broadcast的简单封装
- 解决:CentOS下MySQL执行select ... into outfile ...: Can't create/write to file '...' (Errcode: 13)
- 又是线段树,看来还得温习
- 2017年上海金马五校程序设计竞赛(网上资格赛) A : Corn's new language(括号匹配+求深度)
- 实现qq聊天界面设计 完美解决edittext 软键盘弹出时listview背景不被挤压+listview Item和edittext的相对位置不变
- 抽象类的规则
- SpringMVC学习笔记(八):Ajax用法二(借助json传对象数据)
- leetcode.463. Island Perimeter
- Python-Numpy-Basics-Notes
- MySQL大小写问题