question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SSL Connection to MySQL

See original GitHub issue

My client can connect to the MySQL server using the non-SSL connection. However, if the client switched to an SSL connection, the client would throw the BufferNotFullyConsumedException. I was using the same configuration,

[com.github.jasync.sql.db.mysql.MySQLConnection] MySQLConnection.kt:183 - <mysql-connection-2> Transport failure 
com.github.jasync.sql.db.exceptions.BufferNotFullyConsumedException: Buffer was not fully consumed by decoder, 39 bytes to read, decoder is EOFMessageDecoder and message is EOFMessage

It seems to be similar to https://github.com/jasync-sql/jasync-sql/issues/134 Was this fixed? Thanks

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
oshaicommented, Aug 23, 2021

I finally got to a conclusion that the message is AuthenticationSwitchRequest which was not implemented yet. This is based on the content of the message:

0: fe 6d 79 73 71 6c 5f 6e     . m y s q l _ n 
1: 61 74 69 76 65 5f 70 61     a t i v e _ p a 
2: 73 73 77 6f 72 64 00 12     s s w o r d . . 
3: 37 29 58 57 32 5e 1f 01     7 ) X W 2 ^ . . 
4: 7c 41 19 64 1d 27 1e 64     | A . d . ' . d 
5: 6b 56 68 00                 k V h . 
Total 44 bytes read

And also on r2dbc driver Created PR #248.

0reactions
oshaicommented, Aug 24, 2021

Fix is in version 1.2.3.

Read more comments on GitHub >

github_iconTop Results From Across the Web

6.3.1 Configuring MySQL to Use Encrypted Connections
The default setting, --ssl-mode=PREFERRED , produces an encrypted connection if the other default settings are unchanged. However, to help prevent sophisticated ...
Read more >
How to install mysql and configure SSL?
Download and install the required mysql related packages · Start mysql. · Optionally set mysqld to start at boot · Change mysql root...
Read more >
How to connect to a remote MySQL server using SSL on Ubuntu
Configuring remote MySQL server ... Now that we have enabled SSL, the next step in the configuration of MySQL is to enable (allow)...
Read more >
How To Secure MySQL 8 with SSL/TLS on Ubuntu 20.04
By default, MySQL is configured to only allow connections from the local system. If you want to connect to a MySQL server from...
Read more >
Enable SSL and Remote Connections for MySQL - - Rackspace
Enable SSL for MySQL · Create a new backup directory: · Go to the /var/lib/mysql directory and move every default certificate to your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found