Changes between Version 11 and Version 12 of DatabaseBasedAnalysis


Ignore:
Timestamp:
08/03/18 20:10:06 (6 years ago)
Author:
tbretz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DatabaseBasedAnalysis

    v11 v12  
    151151This can later be '''JOIN'''ed with the following queries.
    152152
     153Let's write the list of runs into a file. There are plenty of options. Here are a few (assuming the query is in a file query.sql)
     154{{{
     155mysql -N [...] < query.sql > Crab.txt
     156cat query.sql | mysql -N [...] > Crab.txt
     157rootifysql [...] -n -v0 -d query.sql > Crab.txt
     158rootifysql [...] -n -w Crab.txt query.sql
     159}}}
     160
     161The [...] is placeholder for additional options, in particular the login credentials (ideally they are kept in a file which can not be read by everyone).
     162
     163An alternative is to put
     164{{{
     165#!/path/to/rootifysql --config=/path/to/resources.rc
     166}}}
     167in the first line of your query.sql. Make it executable "{{{chmod u+x query.sql}}}" and put your credentials (uri=) into resources.rc. Now you can call it directly
     168{{{
     169query.sql -n -w Crab.txt
     170}}}
     171
     172
    153173
    154174== Data retrieval ==