Click here to Skip to main content
15,879,326 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi,
i'm new at linux environment. and i really need to do this as soon as possible.
i have a linux server and i connected to it using SSH(not local) from windows 8.1.(connected fine and can open terminal and transfer file)
i have a remote database to connect(with ip, usernam, passwaord) here is the problem, i don't know how to connect?!
can anyone guide me and show me the way? what is requirements and steps??

i'll be thankful if anyone could help me

What I have tried:

ERROR 2003 (HY000): Can't connect to MySQL server on.... 

should it be maria db or what?
Posted
Updated 20-Feb-17 20:41pm
v2

1 solution

The database on the remote machine uses a port to communicate, in order to connect to that port from a remote pc you need to redirect a local port to it and then use that local port to communicate with the remote database.

SSH port forwarding - Example, command, server config[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900