- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hello everyone,
My office just installed SAS Viya 3.5 last November and my team leader ask me to connect the database to SAS.
The database is in MySQL format, and our SAS doesn't have data connector for MySQL, instead, we have ODBC connector. I've tried the solution from this post below, and still doesn't work.
https://communities.sas.com/t5/SAS-Programming/Suggest-me-the-Connectivity-code-for-SQL-in-SAS/td-p/...
This is the code that I use:
Libname New_lib ODBC
NoPrompt="Driver=SQL Server;Server=10.15.36.146;
Database=mysql;Uid=root;pwd=********";
And the error that showed up:
I suspect that I need to install this connector
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
The second point, yes, the database is named mysql, but it only contains dummy data. I just want to see if I can connect it to SAS.
The third point, that's the id and password that was given to me.
Thank you for answering my question. But it looks like I'm the one whos confused with the job that was given to me.
I already found another way from this paper:
https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2020/4209-2020.pdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
First, I don't you can use a SQL Server driver to access MySQL, you need a specific driver for that.
Second, are you sure the rest of the parameters are correct, is your MySQL database really called mysql?
Third, you should never use root password for this kind of work, should be exclusive for server maintenece personnel only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
The second point, yes, the database is named mysql, but it only contains dummy data. I just want to see if I can connect it to SAS.
The third point, that's the id and password that was given to me.
Thank you for answering my question. But it looks like I'm the one whos confused with the job that was given to me.
I already found another way from this paper:
https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2020/4209-2020.pdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Your question is
"I suspect that I need to install this connector https://dev.mysql.com/downloads/connector/odbc/
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I've read the documentation that you provided, and it's a bit complex for me.
Thank you for answering my question. But it looks like I'm the one whos confused with the job that was given to me.
I already found another way from this paper:
https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2020/4209-2020.pdf