Changeset 8380
- Timestamp:
- 03/20/07 17:21:03 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8379 r8380 19 19 -*-*- END OF LINE -*-*- 20 20 21 2007/03/20 Daniel Hoehne 22 23 * datacenter/db/db.php, datacenter/scripts/budb, 24 datacenter/scripts/dbchk, /datacenter/scripts/dunotseqruns, 25 /datacenter/scripts/findnewstars, 26 /datacenter/scripts/findnotseqruns, /datacenter/scripts/sourcefile, 27 /datacenter/tools/comparesequences, datacenter/tools/resetdataset, 28 sql.rc: 29 - changed the host from hercules to vela 30 31 32 21 33 2007/03/17 Thomas Bretz 22 34 -
trunk/MagicSoft/Mars/datacenter/db/db.php
r7546 r8380 1 1 <?php 2 2 3 $host=" hercules.astro.uni-wuerzburg.de";3 $host="vela.astro.uni-wuerzburg.de"; 4 4 $user="MAGIC"; 5 5 $pw="d99swMT!"; -
trunk/MagicSoft/Mars/datacenter/scripts/budb
r8078 r8380 28 28 echo "writing all databases to file..." >> $logfile 2>&1 29 29 set +C 30 mysqldump --host= hercules--all-databases -u dump | bzip2 -9 -c > $file$datum$end 2>> $logfile30 mysqldump --host=vela --all-databases -u dump | bzip2 -9 -c > $file$datum$end 2>> $logfile 31 31 32 32 -
trunk/MagicSoft/Mars/datacenter/scripts/dbchk
r8065 r8380 9 9 stardir=/magic/data/star 10 10 # access to the sql database 11 alias mymysql='mysql -s -u MAGIC -h hercules--password=d99swMT!'11 alias mymysql='mysql -s -u MAGIC -h vela --password=d99swMT!' 12 12 # database name 13 13 db=MyMagic -
trunk/MagicSoft/Mars/datacenter/scripts/dunotseqruns
r8058 r8380 4 4 query="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'" 5 5 6 files=`mysql -u MAGIC --host= hercules--password=d99swMT! MyMagic -s -e " $query"`6 files=`mysql -u MAGIC --host=vela --password=d99swMT! MyMagic -s -e " $query"` 7 7 8 8 sum=0 -
trunk/MagicSoft/Mars/datacenter/scripts/findnewstars
r8063 r8380 67 67 done 68 68 69 alias mymysql='mysql -u MAGIC --password=d99swMT! --host= herculesMyMagic -s -e'69 alias mymysql='mysql -u MAGIC --password=d99swMT! --host=vela MyMagic -s -e' 70 70 71 71 query="SELECT fSequenceFirst FROM SequenceProcessStatus WHERE NOT ISNULL(fStar) " -
trunk/MagicSoft/Mars/datacenter/scripts/findnotseqruns
r8063 r8380 106 106 done 107 107 108 alias mymysql='mysql -u MAGIC --password=d99swMT! --host= herculesMyMagic -s -e'108 alias mymysql='mysql -u MAGIC --password=d99swMT! --host=vela MyMagic -s -e' 109 109 110 110 if [ "$dat" = "" ] && [ "$cal" = "" ] && [ "$ped" = "" ] && ! [ "$all" = "yes" ] -
trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
r8303 r8380 310 310 query=$query" order by $primary desc " 311 311 # 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 "` 313 313 then 314 314 echo "ERROR could not query processes from db -> exit" … … 356 356 query=$query" limit 0, 1 " 357 357 # 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 "` 359 359 then 360 360 echo "ERROR could not query process from db -> exit" … … 392 392 # echo " QUERY: "$query 393 393 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 "` 395 395 then 396 396 echo "ERROR could not query number of todo proceses from db -> continue" … … 430 430 query=$query" where $primary='$var2'" 431 431 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 " 433 433 then 434 434 echo "ERROR could not insert status into db -> exit" -
trunk/MagicSoft/Mars/datacenter/tools/comparesequences
r8058 r8380 30 30 newdb=TestSequ2 31 31 pw=d99swMT! 32 host= hercules32 host=vela 33 33 34 34 query="select fRunNumber from RunData where fRunNumber > 32000"; -
trunk/MagicSoft/Mars/datacenter/tools/resetdataset
r8064 r8380 93 93 94 94 95 alias mymysql='mysql -u $user --password=$ps --host= hercules$db -s -e'95 alias mymysql='mysql -u $user --password=$ps --host=vela $db -s -e' 96 96 97 97 whereclause1=" WHERE fDataSetNumer=$dataset"
Note:
See TracChangeset
for help on using the changeset viewer.