mysqltableImport.pl 273 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 #!/usr/bin/perl -w use strict; my ($dbName,$dbUser,$dbPassword) = ('portal','shipfi','12345qwerT'); foreach(@ARGV) { print 'process table '.$_."\n"; my $exportCmd = "mysqldump -u{$dbUser} -p{$dbPassword} {$dbName} {$_} > {$_}.sql"; `$exportCmd`; }