在ubuntu系统中用mysqldump来备份mysql数据库的时候 mysqldump提示如下错误:
root@ubuntu:/data/backup# mysqldump -uroot -p123123 -T./ cacti
mysqldump: Got error: 1: Can't create/write to file '/data/backup/cdef.txt' (Errcode: 13) when executing 'SELECT INTO OUTFILE'
郁闷了好久、、最后去到/tmp目录下面执行备份
root@ubuntu:/# chown mysql:mysql /tmp/aaa
root@ubuntu:/# mysqldump -uroot -panniesb -T/tmp/aaa cacti
居然成功了,ubuntu的特殊设置真的折磨人啊!
阅读(1641) | 评论(0) | 转发(1) |