BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
kmardinian
Quartz | Level 8

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!

1 ACCEPTED SOLUTION

Accepted Solutions
kmardinian
Quartz | Level 8

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!

View solution in original post

17 REPLIES 17
Reeza
Super User

Post the code and full log.

kmardinian
Quartz | Level 8

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

Reeza
Super User

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. 

kmardinian
Quartz | Level 8

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

erjatin
Calcite | Level 5
I am not able to recall exact folder name as of now but try to search
accessclient directory.

It should have sample in file...use that to make dns entry.

I will try to search useful documents.
erjatin
Calcite | Level 5
It seems SAS access interface is unable to load drivers.

Are you able to access database outside SAS? if yes then please ensure you
have right entries in sasenv_local file.

Please refer to SAS data management guide chapters for making appropriate
entries.

Also please check if your installation directory has specific Ms access
client for SQL server. Use this driver preferably.

Let me know if you need specific path details.

Jatin
kmardinian
Quartz | Level 8

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!

erjatin
Calcite | Level 5
Ok will try to search some information and share by tomorrow, I faced
similar issue sometime ago.
kmardinian
Quartz | Level 8

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.

kmardinian
Quartz | Level 8

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!

Woody2lax
Fluorite | Level 6

I'm encountering the same issue. How did you add MySQL to your path?

kmardinian
Quartz | Level 8

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.

  1. Start-Control Panel-System-Advanced System Settings-Environment Variables-Path
  2. Check that all mysql applications are in the Path (bottom of image)
  3. If not in path, enter them manually

mysql.PNG

 

Hope this helps!

Woody2lax
Fluorite | Level 6
Success!!! Thank you.

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

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.

Discussion stats
  • 17 replies
  • 7731 views
  • 4 likes
  • 5 in conversation