blob: 3acb51264e98faa6f08a261a30a177a7ddc0e54f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
echo "creating db"
mysql -u root < createdb.mysql
echo "creating tables"
mysql -u root < createtables.mysql
echo "reading genres"
echo " use GiantDisc; load data local infile 'genres.txt' into table genre;"| mysql -u root --local-infile=1
echo "reading languages"
echo "use GiantDisc; load data local infile 'languages.txt' into table language;" | mysql -u root --local-infile=1
echo "reading musictypes"
echo "use GiantDisc; load data local infile 'musictypes.txt' into table language;" | mysql -u root --local-infile=1
echo "reading sources"
echo "use GiantDisc; load data local infile 'sources.txt' into table language;" | mysql -u root --local-infile=1
|