RE: table export in cron

2010-01-07 Thread Dan
On Thu, 7 Jan 2010 15:48:24 +0200, "machiel.richards" wrote: > Hi All > > What the Oracle guys found was that some of the fields were blank even > though the fields were configured as not nullable. > > I found that where this is the case, the users entered a blank space >

Re: table export in cron

2010-01-07 Thread Joerg Bruehe
Hi Machiel, all! machiel.richards wrote: > Hi All > > [[...]] > > What the Oracle guys found was that some of the fields were blank even > though the fields were configured as not nullable. > > I found that where this is the case, the users entered a blank space > which is

RE: table export in cron

2010-01-07 Thread machiel.richards
. Regards -Original Message- From: Nicola Salvemini [mailto:nicolasalvem...@yahoo.it] Sent: 07 January 2010 3:45 PM To: sureshkumar...@gmail.com; Mikhail Berman; machiel.richards Cc: mysql@lists.mysql.com Subject: Re: table export in cron - machiel.richards wrote

Re: table export in cron

2010-01-07 Thread Nicola Salvemini
- machiel.richards wrote > > How can we do this when running in a cron script? > Hi! You can use following command in a shell script running from cron: echo "select * from into outfile '/path/to/output/file' fields terminated by '|';" | mysql --user= --password= ; Bye!

Re: table export in cron

2010-01-06 Thread Michael Dykman
> Date: Wed, 06 Jan 2010 10:42:14 > To: machiel.richards > Cc: > Subject: Re: table export in cron > > Hi Machiel, > > As an alternative, you might consider use of mysqdump command, > http://dev.mysql.com/doc/refman/5.0/en/mysqldump.html,  in a KSH/BASH > script running

Re: table export in cron

2010-01-06 Thread sureshkumarilu
export in cron Hi Machiel, As an alternative, you might consider use of mysqdump command, http://dev.mysql.com/doc/refman/5.0/en/mysqldump.html, in a KSH/BASH script running from cron The script might look like this: = !#/bin/ksh mysqldump --password=yourpassword [more switches needed here

Re: table export in cron

2010-01-06 Thread Mikhail Berman
Hi Machiel, As an alternative, you might consider use of mysqdump command, http://dev.mysql.com/doc/refman/5.0/en/mysqldump.html, in a KSH/BASH script running from cron The script might look like this: = !#/bin/ksh mysqldump --password=yourpassword [more switches needed here] your_da

Re: table export in cron

2010-01-06 Thread Gary Smith
machiel.richards wrote: How can we do this when running in a cron script? mysql -e "select * from into outfile '/path/to/output/file' fields terminated by '|'" ? Gary -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://li