- Timestamp:
- 05/31/10 01:52:42 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/dbbuilder/src/org/bridgedb/download/ensembl_download.sh
r366 r368 37 37 38 38 #create local mysql db 39 echo "create database if not exists genmapp_${mysql_go_name}" | ${mysql} -u genmapp -pfun4genmapp39 echo "create database if not exists ${mysql_go_name}" | ${mysql} -u genmapp -pfun4genmapp 40 40 #create schema 41 ${mysql} -u genmapp -pfun4genmapp genmapp_${mysql_go_name} < ./${mysql_go_name}.sql41 ${mysql} -u genmapp -pfun4genmapp ${mysql_go_name} < ./${mysql_go_name}.sql 42 42 #place in own scope due to "cd" command 43 43 ( 44 44 cd ./${mysql_go_name}; for table_name in *.txt 45 45 do 46 ${mysqlimport} -u genmapp -pfun4genmapp genmapp_${mysql_go_name} `pwd`/${table_name}46 ${mysqlimport} -u genmapp -pfun4genmapp ${mysql_go_name} `pwd`/${table_name} 47 47 done 48 48 ) … … 85 85 86 86 #create local mysql db 87 echo "create database if not exists genmapp_${mysql_core_name}" | ${mysql} -u genmapp -pfun4genmapp87 echo "create database if not exists ${mysql_core_name}" | ${mysql} -u genmapp -pfun4genmapp 88 88 #create schema 89 ${mysql} -u genmapp -pfun4genmapp genmapp_${mysql_core_name} < ./${mysql_core_name}.sql89 ${mysql} -u genmapp -pfun4genmapp ${mysql_core_name} < ./${mysql_core_name}.sql 90 90 #place in own scope due to "cd" command 91 91 ( … … 93 93 do 94 94 #import data 95 ${mysqlimport} -u genmapp -pfun4genmapp genmapp_${mysql_core_name} `pwd`/${table_name}95 ${mysqlimport} -u genmapp -pfun4genmapp ${mysql_core_name} `pwd`/${table_name} 96 96 done 97 97 ) … … 132 132 133 133 #create local mysql db 134 echo "create database if not exists genmapp_${mysql_efg_name}" | ${mysql} -u genmapp -pfun4genmapp134 echo "create database if not exists ${mysql_efg_name}" | ${mysql} -u genmapp -pfun4genmapp 135 135 #create schema 136 ${mysql} -u genmapp -pfun4genmapp genmapp_${mysql_efg_name} < ./${mysql_efg_name}.sql136 ${mysql} -u genmapp -pfun4genmapp ${mysql_efg_name} < ./${mysql_efg_name}.sql 137 137 #place in own scope due to "cd" command 138 138 ( … … 140 140 do 141 141 #import data 142 ${mysqlimport} -u genmapp -pfun4genmapp genmapp_${mysql_efg_name} `pwd`/${table_name}142 ${mysqlimport} -u genmapp -pfun4genmapp ${mysql_efg_name} `pwd`/${table_name} 143 143 done 144 144 )
