2

MySQL AppArmor

Posted by scottk on October 20, 2009 in Sysadmin, Ubuntu |

apparmour

So I was getting these messages

“mysqldump: Got error: 1: Can’t create/write to file ‘/db_backups/mysql/table.txt’ (Errcode: 13) when executing ‘SELECT INTO OUTFILE'”

What I’ve come to find is that on a default install of ubuntu APPARMOR will block mysql from writing to any directory other than a few key ones needed by the app.

Edit the /etc/apparmor.d/usr.sbin.mysqld file and add the directories you need to write dumps to:

/db_backups/mysql** rwk,

2 Comments

  • kanimmozhi says:

    Hi,
    I am trying to write a file using “into outfile ” but i am getting Can’t create/write to file. i treid changing apparmor.d but it fails.Please help us.

    Thanks.

  • scottk says:

    There’s a whole list of reasons why you could get can’t write into outfile. Permissions on the directory in which you are trying to write to are valid for the use to write to?

Comments are closed. Would you like to contact the author directly?

Copyright © 2006-2024 SimpIT.com All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.5, from BuyNowShop.com.