I want to connect to my enterprise MySQL server (APS) from RStudio local IDE.
However, I keep getting the following error message :
Error in .local(drv, ...) : Failed to connect to database: Error: Unknown MySQL Server Host '' (11001)
I installed and loaded "RMySQL","DBI" and "dbConnect" packages and using the following code (sanitized):
drv <- dbDriver("MySQL")
dbname <- "DCA-APS-PRD"
user <- "<My_SSO_USERID>"
password <- "<My_SSO_PASSWORD>"
host <- "<prod server ip>"
port <- <prod server port>
con <- dbConnect(drv, user=user, password=password, dbname=dbname, host=host, port=port)
What am I doing wrong?