Can you please provide more detail about how do you provide Environment Variables mysql to solve the problem. I using SAS eg to connect a maridb server using exactly same query like you and getting :
The libmysqlclient code appendage could not be loaded.
ERROR: Error in the LIBNAME statement.
options set=SASMYL MYWIN417;
libname mylib mysql server="xxxxxx" database=mysql user=xxx password=xxxxx port=9876;
I'll apriciate
Thanks
Mike