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

Open Connection with Login Credentials in Config File #125

Closed
mikevictor opened this issue Jun 13, 2019 · 1 comment
Closed

Open Connection with Login Credentials in Config File #125

mikevictor opened this issue Jun 13, 2019 · 1 comment

Comments

@mikevictor
Copy link

I'd like to establish a database connection using only the login information in a .my.cnf file. This does not work:

MySQL.connect("", "", "", opts = Dict([(MySQL.API.MYSQL_READ_DEFAULT_FILE, "/home/foo/.my.cnf")]))

Is there another way?

@quinnj
Copy link
Member

quinnj commented Jan 29, 2020

In #139, you will be able to do conn = DBInterface.connect(MySQL.Connection, "", "", ""; option_file="my.ini"), where my_ini is your options file. It's now in the test suite :)

@quinnj quinnj closed this as completed Jan 29, 2020
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

2 participants