# Openmrs Mysql with WorkBench

**URL:** https://talk.openmrs.org/t/openmrs-mysql-with-workbench/13324
**Category:** Bahmni
**Created:** [September 15, 2017, 6:16am UTC](https://talk.openmrs.org/t/openmrs-mysql-with-workbench/13324 "2017-09-15T06:16:32Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![rafanetow](https://talk.openmrs.org/user_avatar/talk.openmrs.org/rafanetow/32/5915_2.png) [@rafanetow](https://talk.openmrs.org/u/rafanetow)
#### Post date: [September 15, 2017, 6:16am UTC](https://talk.openmrs.org/t/openmrs-mysql-with-workbench/13324/1 "2017-09-15T06:16:33Z")

</div>

Hello everyone I am Trying view all table of my scheme openmrs with **WorkBench** but I have not managed it to work, I did vagrant up and I can access from my console but not with WorkBench these are the data that I am trying to access:

 ![](https://talk.openmrs.org/uploads/default/original/2X/2/2873f5a54dcc5101a6e48bba0bc7e7533d6051a4.png)

**Error** :

 ![](https://talk.openmrs.org/uploads/default/original/2X/d/d7c24e0e36d88e92f71d3ca3ded7b76fc25bbbce.png)Could someone tell me what’s wrong? or is there another option with which I can see my tables Thanks in advance

---

<div class="post-metadata">

### Author: ![arjun](https://talk.openmrs.org/letter_avatar/arjun/32/5_5575768a8748004e209b776fc1b2916d.png) [@arjun](https://talk.openmrs.org/u/arjun)
#### Post date: [September 15, 2017, 7:04am UTC](https://talk.openmrs.org/t/openmrs-mysql-with-workbench/13324/2 "2017-09-15T07:04:49Z")

</div>

Hi Rafael, I think the mysql setting by default in the Bahmni vagrant box don’t allow connections from outside the machine. It allows connection only from local processes. So you can either change mysql settings (you can google for that) or use the SSL tunneling method in the workbench. (See the second tab in your screenshot). Proxy host would be 192.168.33.10 and user would be vagrant. In the parameters screen, you would specify localhost as hostname. (The connection URL would look like jdbc:mysql://localhost:3306/openmrs )

---

<div class="post-metadata">

### Author: ![alexjohn](https://talk.openmrs.org/letter_avatar/alexjohn/32/5_5575768a8748004e209b776fc1b2916d.png) [@alexjohn](https://talk.openmrs.org/u/alexjohn)
#### Post date: [September 15, 2017, 7:17am UTC](https://talk.openmrs.org/t/openmrs-mysql-with-workbench/13324/3 "2017-09-15T07:17:27Z")

</div>

Following steps works for me

- First run following command in your cmd: **vagrant ssh-config** (make sure you are in bahmni-vagrant Directory) and note down hostName, Port number, User Name and identity file path.

- Now in MySql workbench while creating new connection select **standard TCP/IP over SSH** option for connection method.

- Now provide hostName, Port number, User Name and identity file path information that you get in CMD

---

<div class="post-metadata">

### Author: ![rafanetow](https://talk.openmrs.org/user_avatar/talk.openmrs.org/rafanetow/32/5915_2.png) [@rafanetow](https://talk.openmrs.org/u/rafanetow)
#### Post date: [September 15, 2017, 7:52am UTC](https://talk.openmrs.org/t/openmrs-mysql-with-workbench/13324/4 "2017-09-15T07:52:20Z")

</div>

Hi @alexjohn thanks for wanting to support me, I just follow your step and I would like if you told me if something is wrong this is the information I put:

 ![](https://talk.openmrs.org/uploads/default/original/2X/9/96667d9604061046631a713b2833bbf1fe71a9af.png)

_Error_ : ![](https://talk.openmrs.org/uploads/default/original/2X/1/1d650d569567bf1cbec685daab1079744b03208d.png)

I am not putting any key to vagrant since in console it did not appear any and I am using the pass openmrs to try to enter, I am confusing some information?

---

<div class="post-metadata">

### Author: ![alexjohn](https://talk.openmrs.org/letter_avatar/alexjohn/32/5_5575768a8748004e209b776fc1b2916d.png) [@alexjohn](https://talk.openmrs.org/u/alexjohn)
#### Post date: [September 15, 2017, 8:02am UTC](https://talk.openmrs.org/t/openmrs-mysql-with-workbench/13324/5 "2017-09-15T08:02:13Z")

</div>

@rafanetow reconfirm your SSH hostname it should be like “HostServer:Port” i.e.127.0.0.1:2222 review your ssh-config in cmd.

---

<div class="post-metadata">

### Author: ![rafanetow](https://talk.openmrs.org/user_avatar/talk.openmrs.org/rafanetow/32/5915_2.png) [@rafanetow](https://talk.openmrs.org/u/rafanetow)
#### Post date: [December 5, 2017, 8:34pm UTC](https://talk.openmrs.org/t/openmrs-mysql-with-workbench/13324/6 "2017-12-05T20:34:27Z")

</div>

@alexjohn Thanks four your Help , Yours steps work 😃

 ![image](https://talk.openmrs.org/uploads/default/original/2X/6/60dc226cfb34e03f67a200157a8a00328d8cfc8c.png)
