标签:数据 mysq false nec name lib error app package
R版本:3.5
MySQL版本:8.0
RMySQL版本:0.10.19
使用RMySQL成功连接到MySQL数据库,可以进行查询操作,但在插入时报错,提示信息如下:
con <- dbConnect(MySQL(), host="127.0.0.1", dbname="epid", user="root", password="1234")
dbWriteTable(con,"city_dt",city,overwrite =FALSE,append=TRUE,row.names=FALSE)
报错信息具体如下:
Error in .local(conn, statement, ...) :
could not run statement: The used command is not allowed with this MySQL version
install.packages("RMariaDB")
install.packages("zeallot")
library(RMariaDB)
library(zeallot)
con <- dbConnect(MariaDB(), host="127.0.0.1", dbname="epid", user="root", password="1234")
dbWriteTable(con,"city_dt",city,overwrite =FALSE,append=TRUE,row.names=FALSE)
数据成功插入数据库;
欢迎关注我的微信公众号 简书:数据志
R语言连接MySQL报错:could not run statement: The used command is not allowed with this MySQL version
标签:数据 mysq false nec name lib error app package
原文地址:https://www.cnblogs.com/wheng/p/12316307.html