java - Unable to connect MySQL using R -
i'm learning r language. want establish connection mysql
using r
. i've studied how here, here, tutorial , many other websites. i've followed steps connect mysql, still i'm unable connect mysql, , getting error:
error in .local(drv, ...) : failed connect database: error: can't connect mysql server on 'localhost' (0)
i'm using r version-3.2.2
, mysql version-5.6
, mysql database running on localhost:1527
. please me remove error , tell me i'm doing wrong.
info: i'm able
connect above mysql database java
.
you mysql running on localhost:1527
- don't specify port in dbconnect
, uses default port, 3306
, should not able connect... add port argument dbconnect
dbconnect(mysql(), user="user", password="password", dbname="dbname", host="localhost", port="1527")
Comments
Post a Comment