openresty / lua-resty-mysql

Nonblocking Lua MySQL driver library for ngx_lua or OpenResty
708 stars 236 forks source link

feature: support sha256 plugin to auth #105

Closed rainingmaster closed 4 years ago

rainingmaster commented 4 years ago

Update the auth method in connct, ported from go-sql-driver/mysql. Now we support not only mysql_native_password, but also caching_sha2_password, sha256_password(default auth plugin from mysql 8.0) now.

TODO: support mysql_old_password, and add some test cases for it.

spacewander commented 4 years ago

@rainingmaster Such a big PR! I am reading on it, but I need some time to finish the review.

rainingmaster commented 4 years ago

@rainingmaster Such a big PR! I am reading on it, but I need some time to finish the review.

So thanks!

rainingmaster commented 4 years ago

@spacewander done, could you help me check again?

rainingmaster commented 4 years ago

@zhuizhuhaomeng Hi, could you help me review this PR? So thx