-
-
Notifications
You must be signed in to change notification settings - Fork 629
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
Improve ConnectionOptions ssl documentation #3028
Comments
const db = mysql.createConnection({ This is my aws mysql connection in mysql2. RangeError [ERR_OUT_OF_RANGE]: The value of "offset" is out of range. It must be >= 0 and <= 5. Received 9 Node.js v20.16.0 |
I struggled a bit today connecting to an Azure mysql server. I wanted to use TLS, but didn't want to supply certificates manually. (counting on the host's OS to already trust the remote server)
I got it working, but in hindsight I have a couple suggestions to flatten the speed bump and help folks in the future:
ssl: true
for people like me that want to turn it on but don't need to customize itssl: {}
means "Use SSL".ssl:
) means "Don't use SSL".The text was updated successfully, but these errors were encountered: