Changes between Version 4 and Version 5 of DatabaseBasedAnalysis/Connection


Ignore:
Timestamp:
08/04/18 18:20:27 (6 years ago)
Author:
tbretz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DatabaseBasedAnalysis/Connection

    v4 v5  
    77A connection from everywhere is allowed, if the connection is '''encrypted'''. Connections from ihp-pc45 might be unencrypted.
    88
    9 For the mysql client the following line should work
     9The following two examples should give you a valid connection (however, the '''port 3306''' must be open to connect to ihp-pc45 on your side):
     10
     11The first option is through the mysql-client:
    1012
    1113{{{
     
    1618
    1719If you access the database from outside of ETH, it is wise to '''enable compression''' with the -C option. Inside ETH (in particular on ihp-pc45), enabling -C is certainly a performance drawback and should be avoided.
     20
     21The second option is through a FACT++ tool:
     22
     23{{{
     24rootifysql --uri fact:password@ihp-pc45.ethz.ch/factdata
     25}}}
     26
     27It is wise to put the credentials into a configuration file (its default name is '''rootifysql.rc''') and make it readable only for you ("{{{chmod go-r rootifysql.rc}}}) to avoid that the credentials are visible in the processlist (top, htop, ps aux, etc.). The shortest configuration file would look like this:
     28
     29{{{
     30uri=fact:password@ihp-pc45.ethz.ch/factdata
     31}}}
    1832
    1933Note that the mysql client libraries at ISDC are too old and do not allow for encrypted connections. Thus no connection from ISDC is possible without tunnel. How to tunnel your connection is explained in the following. Note that it requires an account on ihp-pc45 (which I think should not be generally available). Thus this is mainly meant as a solution for automatic processes running at ISDC, for example, to update the database.