Error: R cannot connect to MySQL
问题 I updated MySQL to latest version 8.0.11 yesterday and tried to use RMySQL to connect to MySQL, but it was not working and I could not find any solution. My 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) 回答1: I solved this problem like this: User Windows 1.Error in .local(drv, .