5.5.41-MariaDB
/tmp/hogeディレクトリに出力しようとしてエラーとなる
$ mysqldump -uroot -phoge hogehoge --tab=/tmp/work mysqldump: Got error: 1: "Can't create/write to file '/tmp/work/menu.txt' (Errcode: 2)" when executing 'SELECT INTO OUTFILE'
次のようにしてもダメ
MariaDB [hoge]> select * from menu into outfile "/tmp/work/menu.csv"; ERROR 1 (HY000): Can't create/write to file '/tmp/work/menu.csv' (Errcode: 2)