I am learning how to use MySQL in R with the package RMySQL:
https://www.tutorialspoint.com/r/r_database.htm
but when I try to connect to the DB provided in the example
mysqlconnection = dbConnect(MySQL(), user = 'root', password = '', dbname = 'sakila', host = 'localhost')
I get:
Failed to connect to database: Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
My guess is that I am running it simply on my laptop (mac os), so if my guess is right (?) I need some virtual server.
Do you know any R package that does so? Any suggestion appreciated.