Skip to content
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

Use MySQL credentials in ~/.my.cnf instead of inst/config/database.R #5

Open
paulrougieux opened this issue Jul 28, 2017 · 1 comment
Assignees

Comments

@paulrougieux
Copy link
Collaborator

Storing MySQL credentials in ~/.my.cnf might be problematic for web server processes.

There is a Stackoverflow Q&A about how to set MySQL connection parameters for Shiny.

2 options to tell R where the MySQL credential are located :
(1) Add a default.file argument to each function that generate reports and uses RMySQL::dbconnet() in the background.
(2) create a function that set an option locating "my.cnf" for the duration of the R session.

@paulrougieux paulrougieux self-assigned this Jul 29, 2017
@paulrougieux
Copy link
Collaborator Author

Started deprecating function that use the old way to connect to the database in commit e50ddf9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant