I need to link Shiny with the Database (SQL Server 2008), and extract some data from there, do some data analysis, and present the result to Shiny as a web application, is that possible?What are the settings required on the SQL Server 2008 side, to open it to different users Authentication via internet?
I have tried with MySQL which I allow for remote access over internet with "grant all privileges on *.*", but it still faces the same issue. Can you check what is the error on your server for
https://pepperl-fuchs.shinyapps.io/MySQL/
printscreens here...http://imgur.com/T8m4P3Y
localhost 127.0.0.1 works.. but in shinyapps.io failed.
# Retrieve_MySQL.R
library(RMySQL)
mydb = dbConnect(MySQL(), user='test', password='PASSWORD', dbname="bookstore")
output = fetch(dbSendQuery(mydb, "SELECT book_id, title, Isbn, description FROM books WHERE genre = 'tutorials';"))
# server.R
title <- source('Retrieve_MySQL.R')
shinyServer(
function(input, output) {
output$text1 <- renderText({
paste("Title is", title[[1]]$title)
})
}
)
--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/ed8cbe44-3fa1-4b97-b3a8-649551e30ae8%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/565be76b-935a-4425-967e-5545c7fffd2d%40googlegroups.com.