Creating and Configuring a SNOMED CT Connection

Open MySQL Workbench Application

The following dialog should be displayed.

Create a SNOMEDCT Connection

When the dialog below opens:

With the newly created connection selected:

In future when you open MySQL Workbench you will see the option to open the SNOMEDCT connection.

Save Your MySQL Password in Keychain

To avoid future prompts for the MySQL Password you can save the password in the Keychain.


Testing and Using the SNOMED CT Database

Open the SNOMEDCT Connection

Test the SNOMED CT Database

To test the loaded SNOMED CT database open one of the example queries in the SnomedCtRfsMySql/mysql_examples folder.

The query should be display as shown below

The results of running the query should be displayed as below

Using the SNOMED CT Database

The SNOMED CT database can be used in different ways:

You can run your SQL queries in MySQL Workbench as described in the previous section. Additionally these queries can be run using the MySQL command line interface or through a MySQL connector for one of the programming languages listed at: https://dev.mysql.com/downloads/.

If you are using example queries as templates for your own queries alway copy the query first so that you do not overwrite the original example query.

  • If you accidentally overwrite an example query, you can download the SnomedRfsMySql.zip file again and extract the example queries folder.


Managing MySQL Accounts

The "root" user account is typically used for importing the SNOMED CT release files. However, you should create additional MySQL accounts for database users that do not have administrator rights. Ideally the name of these MySQL accounts should match the Mac username of the user as this simplifies call the mysql command line tool and the use of MySQL connectors.

To create user accounts in the MySQL Workbench select the Administration tab (see below) and select Users and Privileges (see below).

Set up the account details and access permissions.