T086学习网 | 站长学院 | 技术文档 | 成语 | 歇后语 | IP地址查询 | 生日密码 | 生日花语 | CSS压缩 | 在线字典

解决“Error errcode 13 Can't 

【 wordpress作者:佚名 更新时间:2007-12-07 | 字体:
[导读]How do I fix the following error SQL/DB Error errcode 13 Can't create/write to file?Problem: The MySQL variable tmpdir is set to a directory that cannot be written to when using PHP to access MySQL. T...

How do I fix the following error SQL/DB Error errcode 13 Can't create/write to file?
Problem: The MySQL variable tmpdir is set to a directory that cannot be written to when using PHP to access MySQL.

To verify this, enter MySQL at the command line and type show variables;

You'll get a long list and one of them will read: tmpdir = /somedir/ (whatever your setting is.)

Solution: Alter the tmpdir variable to point to a writable directory.

Steps:


Find the my.cnf file. On *nix systems this is usually in /etc/.
Once found, open this in a simple text editor and find the [mysqld] section.
Under this section, find the tmpdir line. If this line is commented (has a # at the start), delete the # and edit the line so that it reads: tmpdir = /writable/dir where /writable/dir is a directory to which you can write. Some use /tmp, or you might also try /home//.
Save the file.
Shutdown MySQL by typing mysqlshutdown -u -p shutdown.
Start MySQL by going to the MySQL directory and typing ./bin/safe_mysqld &. Usually the MySQL directory is in /usr/local or sometimes in /usr/ on Linux systems.

If none of this make sense and you have someone to administrate your system for you, show the above to them and they should be able to figure it out.

原文:http://codex.wordpress.org.cn/index.php?title=FAQ_Troubleshooting#How_do_I_fix_the_following_error_SQL.2FDB_Error_errcode_13_Can.27t_create.2Fwrite_to_file.3F

  • 转载请注明来源:IT学习网 网址:http://www.t086.com/ 向您的朋友推荐此文章
  • 特别声明: 本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系我们,我们会尽快予以更正。
更多
留言建议ASP探针PHP探针站长Enjoy的Blog
© 2017 T086学习网 - T086.com(原itlearner.com)
RunTime:13.30ms QueryTime:7