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

I'm running SAS 9.4 under Parallels v9 on an iMac with Lion as the OS.  I am trying to access a mysql database on a remote server.  I can't get SAS to connect to the server.

1. SAS can access a mysql database set-up on a local server running in Parallels (set-up using WAMP).  SO, the basic code is OK and SAS has the capability to access mysql.

2. I can access the remote mysql database from my iMac using SEQUEL PRO.  So, I know that the configuration/IP address/Port is OK and that I have permission to get remote access to the database on the server.

3.  SAS can access neither the mysql database on the remote server nor one which I set-up on my iMac using MAMP.

I have checked the ports and they are correct.

My SAS code is:

libname mysqll2 mysql

    user=njb1

    password=password

    database=njb1

    server='http://xxx.xxx.xxx.xxx

    port=3306

    ;

The error message that is posted in my log file is:

ERROR: Error trying to establish connection: Unknown MySQL server host 'http://xxx.xxx.xxx.xxx' (2)

ERROR: Error in the LIBNAME statement.

I've googled, and read the relevant SAS manuals but nothing seems to help.

Anyone been able to connect to a remote server in this situation?

Nick.

1 ACCEPTED SOLUTION

Accepted Solutions
BrunoMueller
SAS Super FREQ

Take away the "http://" from the server name, this should help

View solution in original post

3 REPLIES 3
BrunoMueller
SAS Super FREQ

Take away the "http://" from the server name, this should help

nbirkett
Calcite | Level 5

Argh!  Can't believe it was that simple.  Thanks.

anna_holland
SAS Employee

Thanks for jumping in with such a quick resolution, Bruno! Nbirkett, sometimes the small adjustments make a big difference in performance. Anna-Marie

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 2417 views
  • 0 likes
  • 3 in conversation