Search
 
SCRIPT & CODE EXAMPLE
 

SQL

ssh mysql port forwarding

ssh -N -f -L 3336:127.0.0.1:3306 [USER]@[SERVER_IP]

The options used are as follows:

-N - Tells SSH not to execute a remote command.
-L 3336:127.0.0.1:3306 - Creates a local port forwarding. The local port (3306), the destination IP (127.0.0.1) and the remote port (3306) are separated with a colon (:).
[USER]@[SERVER_IP] - The remote SSH user and server IP address.

To run the command in the background, use the -f option.
If the SSH server is listening on a port other than 22 (the default) specify the port with the -p [PORT_NUMBER] option.
Comment

PREVIOUS NEXT
Code Example
Sql :: select count from table mysql 
Sql :: mysql best varchar length size 
Sql :: sql sample tables with data 
Sql :: plsql code for deleting a row from nested table in oracle 
Sql :: drop table sql 
Sql :: remove all records from table mysql 
Sql :: how to print longest name in sql 
Sql :: delete all table oracle 
Sql :: create row number in sql 
Sql :: postgresql substring last 
Sql :: login to mysql 
Sql :: having vs where sql 
Sql :: sql cast to integer 
Sql :: mysql all columns 
Sql :: postgres count string length 
Sql :: how to know password of mysql root in linux terminal 
Sql :: oracle grant on all tables in schema 
Sql :: mysql output csv 
Sql :: sql string starts with 
Sql :: get two decimal places in sql server 
Sql :: mysql select column where has non int values 
Sql :: check isolation level in mysql 
Sql :: FirebaseException ([cloud_firestore/permission-denied] The caller does not have permission to execute the specified operation.) 
Sql :: mysql size of table 
Sql :: SQL Modify Column in a Table 
Sql :: how to get data between a last week in mysql 
Sql :: mysql current date 
Sql :: wordpress delete post revisions older than date "sql" 
Sql :: django mssql backend 
Sql :: postgres add column integer 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =