【发布时间】:2018-10-02 17:55:11
【问题描述】:
尝试从 r 连接到 MySQL:
library(RMySQL)
mydb<-dbConnect(MySQL(), user='root', password='123', dbname='mydb', host='localhost')
得到以下错误:
Error in .local(drv, ...) : Failed to connect to database:
Error: Can't initialize character set unknown (path: compiled_in)
使用
R ver is 3.3.3
MySQL is '8.0.12'
default_character_set_name in MySQL is utf8mb4
【问题讨论】: