- This line was added.
- This line was removed.
- Formatting was changed.
This page lists details on how to connect to various databases in Bahmni.
Bahmni comprises of different sub-components, like OpenMRS, OpenELIS, OpenERP/Odoo, Dcm4chee, PACS-Integration service, etc. Each component talks to its own database, which may be created within MySQL or Postgres. To see the contents of a particular database, you will need to use the right command line tool for MySQL or Postgres, and also appropriate credentials.
For MySQL Databases, the mysql command is used to connect to mysql databases, and view tables and data. Please refer to this resource to see all the commonly used MySQL Commands: MySQL Cheatsheet
Note: If you are connecting to MySQL running inside a Vagrant Box (or a VM) from your host machine, you will need to connect to IP: 192.168.33.10 and port: 3306.
For PostgreSQL Databases, the psql command is used to connect to PostgreSQL databases, and view tables and data. Please refer to this resource to see all the commonly used commands: PostgreSQL DB Administration Commands. If you want to use a graphical GUI tool for psql, then you can try out PgAdmin.
To connect to PostgreSQL DB as admin, and alter databases, or drop them use the command: "
Note: If you are connecting to PostgreSQL running inside a Vagrant Box (or a VM), you may need to refer to this for ensuring the proper ports are open, in case you aren't able to connect from host machine: http://stackoverflow.com/questions/14139017/cannot-connect-to-postgres-running-on-vm-from-host-machine-using-md5-method
List of Application Databases
The connection credentials shown here are the default. These may have been modified during installation by the Administrator.
|Application||DB Server Type||Database Name||Connection Command|
|5.||PACS Integration Service||PostgreSQL||bahmni_pacs|