Mysql through PHP gives a "Can't create/write to file" error

Posted by Peter on Stack Overflow See other posts from Stack Overflow or by Peter
Published on 2010-03-16T10:13:49Z Indexed on 2010/03/16 10:16 UTC
Read the original article Hit count: 343

Filed under:
|
|

The full error is:

Message: Mysqli statement execute error : Can't create/write to file '/var/www/zendApp/backup/mysql/1268733580_name.sql' (Errcode: 13)

I have tried several things already with the /var/www/ZendApp/backup/mysql directory

$chmod 777 mysql
$chmod 1777 mysql
$chown root:root mysql
$chown mysql:mysql mysql

But nothing helps. What am I doing wrong here? Do I have to tell mysql somewhere that I can write to that directory?

© Stack Overflow or respective owner

Related posts about mysql

Related posts about outfile