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_db syntax and parameters #55

Closed
aracnus opened this issue Aug 8, 2019 · 3 comments
Closed

open_db syntax and parameters #55

aracnus opened this issue Aug 8, 2019 · 3 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@aracnus
Copy link

aracnus commented Aug 8, 2019

How exactly open_db works? I used the default syntax as described at documentation ("Saving into a database" section), changing to my settings, like this:

open_db(xml_db_name = "drugbank.xml", driver = "MariaDB", server = "127.0.0.1", output_database = "drugbank")

And got this error:

Error in open_db(xml_db_name = "drugbank.xml", driver = "MariaDB", server = "127.0.0.1", : unused argument (xml_db_name = "drugbank.xml")

suggesting that "xml_db_name" isn't an acceptable parameter.

To test my connection, I remove this parameter and now I'm having this error:

Erro: nanodbc/nanodbc.cpp:950: 28000: [ma-3.1.2]Access denied for user 'UNKNOWN_USER'@'localhost' (using password: NO)

Since the connection is being made via ODBC (is that right?), I configured my odbc.ini and odbcinst.ini, but there is no parameter to indicate my connection settings (available at odbc.ini). So, how can I indicate user and password to this connection?

I'm using R, version 3.6.1 on GNU/Linux.

@sharmb
Copy link

sharmb commented Aug 8, 2019

I had a similar problem, removing the xml_db_name parameter worked for me.

Perhaps use another driver name, such as "SQL Server"

@MohammedFCIS MohammedFCIS self-assigned this Aug 9, 2019
@MohammedFCIS MohammedFCIS added the good first issue Good for newcomers label Aug 9, 2019
@MohammedFCIS MohammedFCIS modified the milestone: 1.1.2 Aug 9, 2019
@MohammedFCIS
Copy link
Contributor

@aracnus thank you for submitting the issue, it will be reviewed and fixed (if needed) so soon.

@MohammedFCIS MohammedFCIS added this to the 1.0.4 milestone Aug 19, 2019
@MohammedFCIS MohammedFCIS added the enhancement New feature or request label Aug 24, 2019
MohammedFCIS added a commit that referenced this issue Aug 25, 2019
MohammedFCIS added a commit that referenced this issue Aug 26, 2019
MohammedFCIS added a commit that referenced this issue Aug 26, 2019
MohammedFCIS added a commit that referenced this issue Aug 26, 2019
@MohammedFCIS
Copy link
Contributor

@aracnus - MariaDB is now supported and it will be available on CRAN soon.
Kindly find the following tutorials for MariaDB, I found them useful

On the other hand, while I use this db I noticed that its default table size is small in contrast to SQL Server which make it not supporting all drugs framework. This is just fyi.

Thanks again for using dbparser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants