I am trying to connect to a remote mysql database by the following steps
SSH
into their machine and keep the tunnel open then,Using a SQL client (Sequel Pro) or
RMySQL
throughRStudio
Using the SQL client I can connect to their database and perform queries. However, usingRMySQL
when I try to connect via,mydb = dbConnect(dbDriver("MySQL"), user='uname', password='pwd', dbname='dbname', host='localhost',group='destination')
I am getting the following error,
Error in .local(drv, ...) : Failed to connect to database: Error: Access denied for user 'uname'@'localhost' (using password: YES)
Help would be appreciated.