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)   

here screenshot of did: work done , error

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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -