Ignore:
Timestamp:
03/20/07 17:21:03 (18 years ago)
Author:
hoehne
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/datacenter/scripts
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/scripts/budb

    r8078 r8380  
    2828echo "writing all databases to file..." >> $logfile 2>&1
    2929set +C
    30 mysqldump --host=hercules --all-databases -u dump | bzip2 -9 -c > $file$datum$end 2>> $logfile
     30mysqldump --host=vela --all-databases -u dump | bzip2 -9 -c > $file$datum$end 2>> $logfile
    3131
    3232
  • trunk/MagicSoft/Mars/datacenter/scripts/dbchk

    r8065 r8380  
    99stardir=/magic/data/star
    1010# access to the sql database
    11 alias mymysql='mysql -s -u MAGIC -h hercules --password=d99swMT!'
     11alias mymysql='mysql -s -u MAGIC -h vela --password=d99swMT!'
    1212# database name
    1313db=MyMagic
  • trunk/MagicSoft/Mars/datacenter/scripts/dunotseqruns

    r8058 r8380  
    44query="select concat('/magic/data/rawfiles', Date_Format(adddate(fRunStart, interval 12 HOUR), '/%Y/%m/%d/'),'*', fRunNumber, '*.raw.gz')  from RunData where fSequenceFirst='0' and fRunStart > '2004-08-20'"
    55
    6 files=`mysql -u MAGIC --host=hercules --password=d99swMT! MyMagic -s -e " $query"`
     6files=`mysql -u MAGIC --host=vela --password=d99swMT! MyMagic -s -e " $query"`
    77
    88sum=0
  • trunk/MagicSoft/Mars/datacenter/scripts/findnewstars

    r8063 r8380  
    6767done
    6868
    69 alias mymysql='mysql -u MAGIC --password=d99swMT! --host=hercules MyMagic -s -e'
     69alias mymysql='mysql -u MAGIC --password=d99swMT! --host=vela MyMagic -s -e'
    7070
    7171query="SELECT fSequenceFirst FROM SequenceProcessStatus WHERE NOT ISNULL(fStar) "
  • trunk/MagicSoft/Mars/datacenter/scripts/findnotseqruns

    r8063 r8380  
    106106done
    107107
    108 alias mymysql='mysql -u MAGIC --password=d99swMT! --host=hercules MyMagic -s -e'
     108alias mymysql='mysql -u MAGIC --password=d99swMT! --host=vela MyMagic -s -e'
    109109
    110110if [ "$dat" = "" ] && [ "$cal" = "" ] && [ "$ped" = "" ] && ! [ "$all" = "yes" ]
  • trunk/MagicSoft/Mars/datacenter/scripts/sourcefile

    r8303 r8380  
    310310   query=$query" order by $primary desc "
    311311#   echo " QUERY: "$query
    312    if ! process=`mysql -s -u $us --password=$pw --host=hercules $db -e " $query "`
     312   if ! process=`mysql -s -u $us --password=$pw --host=vela $db -e " $query "`
    313313   then
    314314      echo "ERROR could not query processes from db -> exit"
     
    356356   query=$query" limit 0, 1 "
    357357#   echo " QUERY: "$query
    358    if ! process=`mysql -s -u $us --password=$pw --host=hercules $db -e " $query "`
     358   if ! process=`mysql -s -u $us --password=$pw --host=vela $db -e " $query "`
    359359   then
    360360      echo "ERROR could not query process from db -> exit"
     
    392392#   echo " QUERY: "$query
    393393   numproc=0
    394    if ! numproc=`mysql -s -u $us --password=$pw --host=hercules $db -e " $query "`
     394   if ! numproc=`mysql -s -u $us --password=$pw --host=vela $db -e " $query "`
    395395   then
    396396      echo "ERROR could not query number of todo proceses from db -> continue"
     
    430430   query=$query" where $primary='$var2'"
    431431   echo " QUERY: "$query
    432    if ! mysql -s -u $us --password=$pw --host=hercules $db -e " $query "
     432   if ! mysql -s -u $us --password=$pw --host=vela $db -e " $query "
    433433   then
    434434      echo "ERROR could not insert status into db -> exit"
Note: See TracChangeset for help on using the changeset viewer.