Changes between Version 4 and Version 5 of DatabaseBasedAnalysis/Connection
- Timestamp:
- 08/04/18 18:20:27 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DatabaseBasedAnalysis/Connection
v4 v5 7 7 A connection from everywhere is allowed, if the connection is '''encrypted'''. Connections from ihp-pc45 might be unencrypted. 8 8 9 For the mysql client the following line should work 9 The 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 11 The first option is through the mysql-client: 10 12 11 13 {{{ … … 16 18 17 19 If 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 21 The second option is through a FACT++ tool: 22 23 {{{ 24 rootifysql --uri fact:password@ihp-pc45.ethz.ch/factdata 25 }}} 26 27 It 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 {{{ 30 uri=fact:password@ihp-pc45.ethz.ch/factdata 31 }}} 18 32 19 33 Note 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.