Re: mysqldump: Got error: 1: Can't create/write to file 'dumpdir/tablename.txt'

2009-04-04 Thread Ray Anderson

I wanted to respond with what I found:

APPARMOR blocks mysql from writing to any other directory than the data 
dir and /tmp.


I had to edit the /etc/apparmor.d/usr.sbin.mysqld file and add the 
following:


 /backups/mysql** rwk,

to the bottom.

Hope this helps someone.

Ray

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org



Re: Are equi-joins faster than left joins?

2009-04-04 Thread Arthur Fuller
IIRC it does not matter. But you can double-check my opinion with EXPLAIN.

A.

On Thu, Mar 12, 2009 at 11:41 AM, mos mo...@fastmail.fm wrote:

 I have 3 tables that are 1:1 and will always have a row for a given
 product,_code  date. If I want to join them together, is it going to be
 faster to use an equi join or a left join, or does it matter?

 TIA
 Mike



Problem compiling mysql-5.1.33

2009-04-04 Thread Dave Shariff Yadallee - System Administrator a.k.a. The Root of the Problem
make  all-am
Making all in mysql-test
Making all in lib/My/SafeProcess
g++ -DHAVE_CONFIG_H -I. -I../../../../include  -O3
-fno-implicit-templates -fno-exceptions -fno-rtti -MT safe_process.o -MD -MP 
-MF .deps/safe_process.Tpo -c -o safe_process.o safe_process.cc
In file included from safe_process.cc:48:
/usr/include/sys/resource.h:63: field `ru_utime' has incomplete type
/usr/include/sys/resource.h:64: field `ru_stime' has incomplete type 

why is this taking place?

Compile options

./configure --prefix=/usr/contrib --localstatedir=/usr/contrib/mysqld 
--without-innodb --disable-debug --with-ssl=/usr/contrib 
--enable-thread-safe-client 

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org



Re: Are equi-joins faster than left joins?

2009-04-04 Thread Rob Wultsch
On Thu, Mar 12, 2009 at 8:41 AM, mos mo...@fastmail.fm wrote:
 I have 3 tables that are 1:1 and will always have a row for a given
 product,_code  date. If I want to join them together, is it going to be
 faster to use an equi join or a left join, or does it matter?


IIRC:With an inner join the optimizer has more latitude to reorganize
the join order and can short circuit the process if there is not a
corresponding row.

This is completely secondary to getting the right result set for your
query. If there is the possibility of a row in the parent table not
joining and needing to be part of the result then you must use left.

-- 
Rob Wultsch
wult...@gmail.com

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org