J
J
Jekson2020-08-26 16:32:59
SSH
Jekson, 2020-08-26 16:32:59

Tunneling to a remote Mysql database via ssh?

Have access to the database

'db': {
        'ENGINE': 'smth.db.backends.mysql',
        'NAME': 'game_log',
        'HOST': 'ru-game-log.corp.uno.local',
        'PORT': '3306',
        'USER': 'big',
        'PASSWORD': 'bos',
    },


Tell me how to forward the tunnel to it from the local machine in the ubuntu console, so that you can look at the contents.
ps if something is not real credits)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
FanatPHP, 2020-08-26
@FanatPHP

ssh remote -L3306:localhost:3306 -N -f

A
Andrey Barbolin, 2020-08-26
@dronmaxman

There are mysql clients that can connect over SSH.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question