I have a MySQL server (version 8.0.35-0ubuntu0.20.04.1) and would like to monitor UPDATE and INSERT operations in a particular MySQL table from a Node.js application. These changes should come from anywhere, not only from the Node.js application itself.
I found some documentation about an old NPM package called @rodrigogs/mysql-events.
When trying to implement the sample code in the documentation of this package, I got the following error:
ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
I am aware that each MySQL users has a certain authentication method. I tried both of the following methods, but to no avail:
- mysql_native_password
- caching_sha2_password
Any idea how to overcome this?
Thank you.
I ran through the following steps and it worked fine for me.
test.articlestable:Running the following three queries against the
test.articlestable:I received the following output to the console: