Not strong in this thread. I want to write a bash script for VPS (on CentOS), which by crown will cycle through the dump files in the folder and import them into the database, after importing the file, you need to delete it ...
That's what I do, but the nonsense comes out:
#!/bin/bash mysql use db_cars cd / cd /home/admin/web/site/public_html/update/db/dump find -type f -iname "*.sql" | while read FILENAME; do source $FILENAME done
source, but throughmysql -uUSER -pPASSWORD DB_NAME < data.sql- BOPOH