
9 Mar
2010
9 Mar
'10
3:08 a.m.
Any idea what is wrong with this command??
find /home/path/* -name *.sql -exec mysql -p password -h < {} \;
I am needing to import about 250 sql files.
Try this: find /home/path/ -name "*.sql" -exec mysql -p password -h < {} \; BTW you will have to enter the password 250 times! Cheers, Peter -- Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ http://www.cs.waikato.ac.nz/~fracpete/ Ph. +64 (7) 858-5174