[フレーム]
Last Updated: September 30, 2021
·
18.91K
· sivaschenko

Connect to mysql through ssh tunnel from php

shell_exec("ssh -fNg -L 3307:$dbServerHost:3306 user@remote_host");
$conection = new mysqli($dbServerHost, $username, $password, $dbname, 3307);

AltStyle によって変換されたページ (->オリジナル) /