Score:0

Connecting to remote SQL Server database over SSH

de flag

I am trying to connect to a remote SQL Server over SSH.

How can I do this via the terminal?

in flag
ssh is the command to initiate a Ssh connection.. e.g. ssh remotehost mysql would attempt to connect to host 'remotest' and run the command 'mysql' as your current user.
ar flag
Which version of Ubuntu are you running on your local computer? Which version of Ubuntu are you running on the SQL server?
Hemant Bhatt avatar
de flag
i'm using ubuntu 16.04
CrazyTux avatar
us flag
Does this answer your question? [How to connect to Internet through a remote server via SSH connection](https://askubuntu.com/questions/1053453/how-to-connect-to-internet-through-a-remote-server-via-ssh-connection)
storm avatar
cn flag
Does this answer your question? [How to connect to another computer through the Internet using ssh?](https://askubuntu.com/questions/413650/how-to-connect-to-another-computer-through-the-internet-using-ssh)
Score:0
de flag

First connect to remote server using ssh tunnelling

ssh @

and once you are connected to remote server you can access mysql using mysql -h -u -p

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.