-
Notifications
You must be signed in to change notification settings - Fork 111
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
could not run statement: The used command is not allowed with this MySQL version #180
Comments
I have found that that I should add an argument |
Thanks. Have you installed RMySQL from CRAN or from GitHub? |
I have the same issue, from the CRAN and GitHub install. |
Here is the same issue. conn <- DBI::dbConnect(RMySQL::MySQL(), dbname = "mydb", username = "root", password = "passwd")
DBI::dbWriteTable(conn, name = "test", value = cars)
#> Error in .local(conn, statement, ...) :
#> could not run statement: The used command is not allowed with this MySQL version
Sessioninfo: R version 3.5.0 (2018-04-23)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=Chinese (Simplified)_China.936 LC_CTYPE=Chinese (Simplified)_China.936
[3] LC_MONETARY=Chinese (Simplified)_China.936 LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_China.936
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] RevoUtils_11.0.0 RevoUtilsMath_11.0.0
loaded via a namespace (and not attached):
[1] compiler_3.5.0 tools_3.5.0 yaml_2.1.19 |
I could confirm that the table to be written was actually created, only with no records of data but the field names. library(DBI)
con <- dbConnect(RMySQL::MySQL(), user = "root", password = "passwd", dbname = "mydb")
dbListTables(con)
#> [1] "mtcars" "test"
dbReadTable(con, "test")
#> [1] speed dist
#> <0 行> (或0-长度的row.names) |
I'm running into the exact same issue. |
Can you try editing the |
In my case, the solution provided by @nickitalyano here solved the issue. |
Hi,
I am using RMySQL package to write (append) data in current table.
I am using R, version 3.3.2.
My code looks like this:
This code works fine for some time, but in last ten days, it always return an error:
I don't understand how it is possible for code to work for some time and now, it returns an error?
I kindly ask for feedback on this issue.
Best,
Mislav Šagovac
The text was updated successfully, but these errors were encountered: