MySQL运行时候报告 Can't create/write to file xxx

Posted sfqas

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MySQL运行时候报告 Can't create/write to file xxx相关的知识,希望对你有一定的参考价值。

问题
mysql运行时候报告 Can‘t create/write to file xxx

解决方案
这个问题通常发生在windows系统上,是由于mysql没有指定默认的temp临时目录造成的

解决方法:
修改mysql的配置文件my.cnf
找到[mysqld]一段:
加入如下一行:
tmpdir=C:/temp (注意,路径的/是unix风格的,不是windows的风格)

然后确认C: emp目录要有mysql的写入权限
重启MySQL,即可

以上是关于MySQL运行时候报告 Can't create/write to file xxx的主要内容,如果未能解决你的问题,请参考以下文章