| | 1 | = To use MOLGENIS you need proper permissions |
| | 2 | |
| | 3 | == MySQL == |
| | 4 | |
| | 5 | In the MolgenisProperties file you need to set database parameters |
| | 6 | |
| | 7 | {{{ |
| | 8 | #!CodeExample |
| | 9 | #!sql |
| | 10 | db_driver = com.mysql.jdbc.Driver |
| | 11 | #your username here |
| | 12 | db_user = molgenis |
| | 13 | #your password her |
| | 14 | db_password = molgenis |
| | 15 | #the url has pattern jdbc:mysql://<yourserver>/<yourdatabase> |
| | 16 | db_uri= jdbc:mysql://localhost/molgenis?innodb_autoinc_lock_mode=2 |
| | 17 | }}} |
| | 18 | |
| | 19 | Subsequently you need to give proper permissions to this user. Open the mysql client and type: |
| | 20 | |
| | 21 | grant all privileges on yourdatabase.* to youruse@yourtomcatserver identified by 'yourpassword'; |
| | 22 | flush privileges; |
| | 23 | |
| | 24 | For the default user this is: |
| | 25 | |
| | 26 | grant all privileges on molgenis.* to molgenis@localhost identified by 'molgenis'; |
| | 27 | flush privileges; |