Skip to content
Prev 132489 / 398506 Next

connecting [logging] RMySQL to an external server - SOLVED

On Wednesday 19 December 2007, Dirk Eddelbuettel wrote:
The remote host expects a login username and password (different from the 
MySQL username and password), which I cannot provide in the dbConnect 
function.
The solution is to first login to the external machine (a secure login using 
ssh), forwarding the MySQL port 3306 to the local port 3307 (not to interfere 
with the local MySQL server), and connecting R to the remote MySQL server 
using the ssh tunneling binded to local port 3307.

Best,
Adi