Show
Ignore:
Timestamp:
05/31/10 01:52:42 (2 years ago)
Author:
AlexanderPico
Message:

updated to work on plato cluster

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/dbbuilder/src/org/bridgedb/download/ensembl_download.sh

    r366 r368  
    3737 
    3838  #create local mysql db 
    39   echo "create database if not exists genmapp_${mysql_go_name}" | ${mysql} -u genmapp -pfun4genmapp 
     39  echo "create database if not exists ${mysql_go_name}" | ${mysql} -u genmapp -pfun4genmapp 
    4040  #create schema 
    41   ${mysql} -u genmapp -pfun4genmapp genmapp_${mysql_go_name} < ./${mysql_go_name}.sql 
     41  ${mysql} -u genmapp -pfun4genmapp ${mysql_go_name} < ./${mysql_go_name}.sql 
    4242  #place in own scope due to "cd" command 
    4343  ( 
    4444   cd ./${mysql_go_name}; for table_name in *.txt 
    4545   do 
    46     ${mysqlimport} -u genmapp -pfun4genmapp genmapp_${mysql_go_name} `pwd`/${table_name} 
     46    ${mysqlimport} -u genmapp -pfun4genmapp ${mysql_go_name} `pwd`/${table_name} 
    4747  done 
    4848 ) 
     
    8585 
    8686  #create local mysql db 
    87   echo "create database if not exists genmapp_${mysql_core_name}" | ${mysql} -u genmapp -pfun4genmapp 
     87  echo "create database if not exists ${mysql_core_name}" | ${mysql} -u genmapp -pfun4genmapp 
    8888  #create schema 
    89   ${mysql} -u genmapp -pfun4genmapp genmapp_${mysql_core_name} < ./${mysql_core_name}.sql 
     89  ${mysql} -u genmapp -pfun4genmapp ${mysql_core_name} < ./${mysql_core_name}.sql 
    9090  #place in own scope due to "cd" command 
    9191  ( 
     
    9393   do 
    9494    #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} 
    9696  done 
    9797 ) 
     
    132132 
    133133  #create local mysql db 
    134   echo "create database if not exists genmapp_${mysql_efg_name}" | ${mysql} -u genmapp -pfun4genmapp 
     134  echo "create database if not exists ${mysql_efg_name}" | ${mysql} -u genmapp -pfun4genmapp 
    135135  #create schema 
    136   ${mysql} -u genmapp -pfun4genmapp genmapp_${mysql_efg_name} < ./${mysql_efg_name}.sql 
     136  ${mysql} -u genmapp -pfun4genmapp ${mysql_efg_name} < ./${mysql_efg_name}.sql 
    137137  #place in own scope due to "cd" command 
    138138  ( 
     
    140140   do 
    141141    #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} 
    143143  done 
    144144 )