backup all databases mysql at once code example
Example: mysql restore backup from multiple files
find . -name '*.sql' | awk '{ print "source",$0 }' | mysql --batc
find . -name '*.sql' | awk '{ print "source",$0 }' | mysql --batc