Feed mysql SQL files from folder

File: mysql_restore.sh Line 1 Col 0 311

1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
#
FILES="$1/*"
for f in $FILES
do
    echo "Processing $f file..."
    # take action on each file. $f store current file name
    #cat $f
    cat $f | /usr/bin/mysql  --no-defaults --force --user=root --password=
    echo " >> finished "
    echo "---------------------------------"
    #break
done
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
#
FILES="$1/*"
    echo "Processing $f file..."
    # take action on each file. $f store current file name
    #cat $f
    cat $f | /usr/bin/mysql  --no-defaults --force --user=root --password=****
    echo " >> finished "
    echo "---------------------------------"
    #break