Skip to content
Prev 248029 / 398503 Next

Accessing MySQL Database in R

I think this is not an R issue, but one of MAMP. On my server's 
sql service, I can connect using password, however, on my local 
MAMP, I need the socket:

dbCon <- dbConnect(dbdr, user="root", password="root", 
dbname="mydb", 
unix.socket="/Applications/MAMP/tmp/mysql/mysql.sock")

HTH, *S*
On 11-01-20 08:30, Spencer Graves wrote: