You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> RMySQL::mysqlHasDefault()
Could not initialise default MySQL database. If MySQL is running
check that you have a ~/.my.cnf file that contains a [rs-dbi] section
describing how to connect to a test database.
[1] FALSE
However, the problem seems to be the 127.0.0.1 vs. localhost issue raised here.
> DBI::dbConnect(RMySQL::MySQL(), dbname = "test", host = "127.0.0.1")
<MySQLConnection:0,6>
> DBI::dbConnect(RMySQL::MySQL(), dbname = "test")
Error in .local(drv, ...) :
Failed to connect to database: Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
The text was updated successfully, but these errors were encountered:
Note that:
However, the problem seems to be the
127.0.0.1
vs.localhost
issue raised here.The text was updated successfully, but these errors were encountered: