Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect to MySQL 8.0.11 #220

Open
chingting opened this issue Apr 26, 2018 · 3 comments
Open

Cannot connect to MySQL 8.0.11 #220

chingting opened this issue Apr 26, 2018 · 3 comments

Comments

@chingting
Copy link

I updated MySQL to the newest version 8.0.11, but when I tried to connect R to MySQL, it's not working.

Code:
library(RMySQL)
con <- dbConnect(MySQL(), user="hello", password="hi", dbname = "webscrape", host="xx.xxx.xxx.xxx", port=xxxx)

Error:
Error in .local(drv, ...) :
Failed to connect to database: Error: Can't initialize character set unknown (path: compiled_in)

@rupesh2017
Copy link

library(RMySQL)
con <- dbConnect(MySQL(),user='root',password='system')
Error in .local(drv, ...) :
Failed to connect to database: Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

ubuntu 18.04 mysql 8.0.11

@EricGoldsmith
Copy link

Just ran into this when a homebrew upgrade installed mysql v8.0.11. FWIW, here's what I did to get things working again on my OSX system:

In RStudio, remove the RMySQL package:
remove.packages(“RMySQL")

From a command prompt, remove mysql:
brew uninstall mysql

From a command prompt, install the old version, and keep it from being upgraded in the future:
brew install [email protected]
brew link --force [email protected]
brew pin [email protected]

Back in RStudio, install RMySQL from source:
install.packages("RMySQL", type = "source")

@diandian11
Copy link

Rmysql (0.10.17) cannot support Mysql 8.0 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants