New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Azure Database for MySQL (New PaaS in Azure) #7633
Comments
I filed mysqljs/mysql#1729 for a handshaking bug with Azure Database for MySQL when SSL is off. I suspect there is a second issue (the one reported above) with SSL is on. |
Update: Microsoft seems to have acknowledged the issue and is addressing the SSL problem from the server side. See: https://social.msdn.microsoft.com/Forums/en-US/c8fedbcc-909d-41ce-8c72-0374f76fdf82/cannot-connect-from-nodejs?forum=AzureDatabaseforMySQL There is yet, another problem, when not using SSL, the MySQL lib has an issue properly switching modes and assumes an unsupported protocol. Thanks to Brad, there is a PR to fix this, but it seems to be in waiting state. @bgrainger Thanks for your efforts putting that together. |
According to this Stack Overflow answer, Microsoft has fixed the SSL connection error. The handshaking bug mentioned still exists though and will still cause problems once the SSL connection is established. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment 🙂 |
Still an issue, more progress is being made. Once mysql lib is updated, sequelize will have to also be updated with latest mysql. |
@cohowap currently default driver is mysql2 and there is already support for auth plugins there |
@sidorares you are correct sir. Thank you for pointing that out. I will run my tests and see where it gets me.
|
Download the cert from : https://www.digicert.com/CACerts/BaltimoreCyberTrustRoot.crt.pem Then connect to the database with the following options :
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment 🙂 |
Hello, I am trying to migrate an application that uses a self hosted MySQL 5.6 to a hosted MySQL on Azure (not ClearDB). I am getting a Handshake error when I connect with and without SSL. (NOTE: This is most likely an issue with MySQL lib, but I figured I would post here while I dig into it).
Reference Documents:
https://docs.microsoft.com/en-us/azure/mysql/quickstart-create-mysql-server-database-using-azure-portal
https://docs.microsoft.com/en-us/azure/mysql/howto-configure-ssl
SSL CA Cert:
https://www.digicert.com/CACerts/BaltimoreCyberTrustRoot.crt
NOTE: I converted to a .cer and pem, trid all 3 neither worked.
What do you expect to happen?
I would expect everything to be working as normal.
What is actually happening?
Dialect: mysql
Database version: 5.6
Sequelize version: 3.30.4
The text was updated successfully, but these errors were encountered: