In the following example,
the libref MYSQLLIB uses
SAS/ACCESS Interface to MySQL to connect
to a MySQL database. The
SAS/ACCESS connection options are USER=,
PASSWORD=, DATABASE=, SERVER=, and PORT=.
libname mysqllib mysql user=testuser password=testpass database=mysqldb
server=mysqlserv port=9876;
proc print data=mysqllib.employees;
where dept='CSR010';
run;