Skip to content

Commit

Permalink
Merge pull request #77 from hbs-rcs/ODBC
Browse files Browse the repository at this point in the history
Odbc
  • Loading branch information
velmela authored Aug 5, 2024
2 parents 60315b2 + c08de7c commit 9222c53
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion docs/storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,30 @@ one of the clients listed below.

Alternatively, you can access MariaDB from Terminal after **first logging into the Grid** (see instructions on the [Start Here page](https://hbs-rcs.github.io/hbsgrid-docs/) and then typing: `mysql -h hostname -u username -p`.

For all of the commands referenced above, replace the `username` with your username, the mariadbhost with the HBS host name in your `.my.cnf` file, and (if applicable) the `ssl-ca path` with the appropriate path. You will be prompted to provide your password .
For all of the commands referenced above, replace the `username` with your username, the mariadbhost with the HBS host name in your `.my.cnf` file, and (if applicable) the `ssl-ca path` with the appropriate path. You will be prompted to provide your password.

=== "ODBC"

Setting up an ODBC connection differs by whether you are connecting from the Grid (Linux), Mac, or Windows machine. Please see MariaDB's ODBC set-up [documentation](https://mariadb.com/kb/en/creating-a-data-source-with-mariadb-connectorodbc/) for more information and **note that if connecting from the Grid, the ODBC administration tool and appropriate ODBC drivers are already installed.** You will still need to ensure that you have a `.odbc.ini` configuration file saved in your home directory. An example `.odbc.ini` template is below
```
[ODBC Data Sources]
rcs_mariadb = RCS_MariaDB_ODBC_connection
[rcs_mariadb]
driver = mariaDB
server = HOSTNAME
port = 3306
database = jharvard
user = jharvard
password = PASSWORD
sslmode = required
sslca = PATH_TO_SSL_CERT
```
Once your `.odbc.ini` is ready, save it to your home directory and adjust file privileges to ensure no one else can read the file:
`chmod 700 ~/.odbc.ini`
**************************
Expand Down

0 comments on commit 9222c53

Please sign in to comment.