当前位置:Gxlcms > 数据库问题 > MySQL运行时候报告 Can't create/write to file xxx

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

时间:2021-07-01 10:21:17 帮助过:12人阅读

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

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

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

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

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

标签:运行时   配置文件   重启   解决方案   temp   mysql   解决方法   一段   win   

人气教程排行