Rename file within MySQL Stored Procedure -
i'm trying backup of data stored in big table with
select ... outfile
statement. output file on network hard drive, if network connection breaks during dump (it takes 1 minute more or less) find partial file on network hard drive , i'd mark such file "wrong". there sql command can give inside mysql stored procedure let me rename such file?
thank much
best
cghersi
you can't rename file in mysql, use 2 files dump , rotate when operation successful.
example:
you make dump 'a.csv', if operation successful use 'b.csv' next dump, otherwise use 'a.csv' again. , on...
Comments
Post a Comment