MySQL Forums
Forum List  »  Perl

Re: table to output "into outfile"
Posted by: Vesa Kilpiäinen
Date: September 09, 2006 10:22AM

I've got same problem, here's my code:

<?php...

$query = "SELECT * INTO OUTFILE 'backup/test.sql' FROM dev_users";
$result = mysql_query($query) or die('MySQL error: outfile');

...?>

So how can I make mysql to save the backup file in a directory which I choose, not in /var/lib/mysql/<database name>/backup/?

Options: ReplyQuote


Subject
Written By
Posted
Re: table to output "into outfile"
September 09, 2006 10:22AM
September 09, 2006 12:50PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.