sqlectron / sqlectron-core

https://sqlectron.github.io/
MIT License
221 stars 69 forks source link

move from mysql to mysql2 dependency #81

Closed MasterOdin closed 4 years ago

MasterOdin commented 4 years ago

MySQL 8 introduced a new authentication scheme that's used by default. While old behavior can be restored by using runtime flag of --default-authentication-plugin=mysql_native_password, it's not resonable to expect that consumers will do that (or potentially be able to). mysql dependency does not support this new auth, and probably will not until v3 is released which is not clear as to when that'll happen. mysql2 on the other hand happily supports it, as well as some nifty futures like prepared queries, ssl, and better performance.