BookmarkSubscribeRSS Feed
joaohenriques
Calcite | Level 5

After enabling auto update on one of our MySQL db, hosted in AWS, a new update was made to v8.0.28. Since then, we are not able to connect to the db, using the libname statement:

 

LIBNAME <libname_name> MYSQL SERVER='<server>' DATABASE='<db_name>' USER='<user>' PASSWORD='<password>';

 

This is the rror message:

 

ERROR: Error trying to establish connection: SSL connection error: unknown error number
ERROR: Error in the LIBNAME statement.

 

This code had always worked, even without the port. It was working since we build our ETL framework, beginning 2021.

Fyi, using MySQL Workbench CE we can establish the connection, without any problem (no SSL is being used).

 

In the meantime, we realise that this can be related with the fact that MySQL v8.0.28 deprecated TLSv1 and TLSv1.1:

MySQL :: MySQL 8.0 Reference Manual :: 6.3.2 Encrypted Connection TLS Protocols and Ciphers

After realising this, we have updated our MySQL client to v8.0.30, including the MySQL Connector/Net. However, even after updating all MySQL tools to their newest versions, we still can't connect to the db using the libname. Btw, we are sure that the mysql client is using TLSv1.2 and v1.3, because we checked it directly in MySQL Workbench CE using the code:

SHOW GLOBAL VARIABLES LIKE 'tls_version';

Which returned:

joaohenriques_0-1661241965577.png

Before downgrading the MySQL versions, we would like to challenge you with this issue. Is this familiar to anyone?

Thanks in advance! 😉

 

4 REPLIES 4
LinusH
Tourmaline | Level 20

I suggest that you open a track with SAS tech support to assist you in your trouble shooting.

Since I suspect not many of the users of this forum have the exact the same set up as you.

Data never sleeps
JosvanderVelden
SAS Super FREQ
This issue is currently under investigation by SAS Technical Support.
JCBelland
Calcite | Level 5

Hi,

Did you finally solve the problem ?

JosvanderVelden
SAS Super FREQ
After checking some points with SAS tech support, reinstallation of MySQL components and restarting SAS the connection to the new database is successful.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 867 views
  • 2 likes
  • 4 in conversation