I have installed MySQL on my computer and still seem to be getting this error:
ERROR: The SAS/ACCESS Interface to MYSQL cannot be loaded. The libmysql code appendage could not be loaded.
ERROR: Error in the LIBNAME statement.
I also ran this code (proc setinit;run;) to make sure SAS/Access Interface to MySQL was on there.
Any help is much appreciated, thank you!
I finally figured it out. For some reason, MySQL was not in my path in my environmental variables, so my system was not recognizing it.
Thank you for you all your help!
Post the code and full log.
227 libname mysql mysql USER='X' PASSWORD=XXXXXXXXXX DATABASE='X' SERVER='XXX.XXXX.com' PORT=X;
ERROR: The SAS/ACCESS Interface to MYSQL cannot be loaded. The libmysql code appendage could not be loaded.
ERROR: Error in the LIBNAME statement.
The above code should be correct because it works for others that also have mySQL installed, but unfortunately is not working for mine
So no mySQL connection works for you? Run the following and see what's licensed versus what's installed.
*show licensed;
proc setinit;run;
*show installed;
proc product_status;run;
If proc product_status does not show the mySQL component it means it wasn't installed.
It looks like it was installed 😕
228 proc product_status;run;
For Base SAS Software ...
Custom version information: 9.4_M4
Image version information: 9.04.01M4P110916
For SAS/STAT ...
Custom version information: 14.2
For SAS/GRAPH ...
Custom version information: 9.4_M4
For High Performance Suite ...
Custom version information: 2.2_M5
For SAS/ACCESS Interface to Oracle ...
Custom version information: 9.41
For SAS/ACCESS Interface to PC Files ...
Custom version information: 9.4_M4
For SAS/ACCESS Interface to MySQL ...
Custom version information: 9.4_M4
NOTE: PROCEDURE PRODUCT_STATUS used (Total process time):
real time 0.09 seconds
cpu time 0.01 seconds
Hi Jatin,
I may need specific path details, I am still pretty new to SAS so I'm not sure how I would check that I have the right entries in the sasenv_local file and how to check the installation directory. Is that all in the SAS data management guide?
Thank you!
I can't seem to find a file that is close to accessclient in the directory. I would looking in the SASHome folder, correct?
Thank you again for all your help! I will try and keep working on it until tomorrow.
I finally figured it out. For some reason, MySQL was not in my path in my environmental variables, so my system was not recognizing it.
Thank you for you all your help!
I'm encountering the same issue. How did you add MySQL to your path?
I compared my environment variables to another programmer on my team and manually added them for my SQl.
If SAS still cannot gain access to mysql, check to ensure environmental variables for mysql have the correct path.
Hope this helps!
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.
Find more tutorials on the SAS Users YouTube channel.