On my local machine, I have ssh into the bastion where I can then connect to the remote MySQL server. I know that this is working because in terminal, it says that I have successfully connected and when I use an app like SQLPro and attempt to connect to the MySQL server with the correct permissions, I am able to successfully log in. Also, the command line

```
mysql -u username -p

```

works after I ssh.

Now, I am trying to use the library RMySQL to connect to the server and using

```
con<-dbConnect(MySQL(), user = "username", password = "pw", host = "127.0.0.1")

```

I get the return

```
Error in .local(drv, ...) : Failed to connect to database: Error: Can't connect to MySQL server on '127.0.0.1' (61)

```

It seems that R cannot determine that I have connected to the bastion. I say this because I have used the line above before on the remote server and it worked just fine.