BookmarkSubscribeRSS Feed
BrahmanandaRao
Lapis Lazuli | Level 10

/*How to connect mysql database in sas 9.4 */
libname mysql1 mysql user=xxxx pwd=xxx;
proc sql;
create table mysql1.t1 as select * from mysql1.city ;
quit;

 

 

Anandkvn_0-1599030851703.png

 

5 REPLIES 5
SASKiwi
PROC Star

The error you are getting suggests that the SAS product SAS/ACCESS to MySQL is not installed and/or licensed.

You can check by running this:

proc product_status; run;
proc setinit; run;

If you have SAS/ACCESS to ODBC that is another way to connect to MySQL.

BrahmanandaRao
Lapis Lazuli | Level 10
hi SASKiwi
the above code tells product production validation data
so please give solution to access MySQL Access engine in SAS 9.4
ChrisNZ
Tourmaline | Level 20

The validation data lists the licensed software. 

Do you have a license for SAS/ACCESS to MySQL?

If not, maybe you have SAS/ACCESS to ODBC?

If you have no SAS/ACCESS software license, you cannot have SAS talk to other software. In that case you can use CSV files.

SASKiwi
PROC Star

@BrahmanandaRao - Please post the SAS log of the code I posted.

andreas_lds
Jade | Level 19

@BrahmanandaRao wrote:
hi SASKiwi
the above code tells product production validation data
....

And this exactly what @SASKiwi wanted you to check, because the error-message you got is raised if Access To MySQL is not installed or if it is not configured, so checking whether it is installed and licenced is the first step to fix the issue.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 1271 views
  • 0 likes
  • 4 in conversation