Hi, I know this has been discussed elsewhere, but for the life of me, I can't seem to figure this out. All is fine on mysql 5. , but I need to use digitalocean, so I can only use mysql 8.
Getting this error:
"Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client"
DO's suggestion is the following:
As a workaround, you can connect using MySQL 8.x and issue the following statement, which will change the password type the server will accept for the current user. Replace use_your_user with your MySQL username, and replace use_your_password with the user’s current password. After successfully executing the statement, you should be able to connect to MySQL with a 5.x client or an application that does not support caching_sha2_password
Questions:
Where in nodered do I replace use_your_user with my MySQL username?
Where in nodered do I replace use_your_password with the user's current password?
I assume it should be done in some "raw code" view, but I can't find any. Any ideas would be greatly appreciated.
Not sure how to go about writing that function in nodered. Would you have any pointers / templates to share? I'm on an extremely basic level in my coding knowledge, but very eager to learn. Thanks again
Haven't done this before. Figuring everything out as I go along. I think I'll need to go through a tutorial on how to write a javascript function to connect to mysql - to not miss any steps here.
PS: Any known drawbacks when using python instead of JS inside nodered?
Looking at your question again, when it says 'replace' what it means is that have to run the command that (presumably) is on the next line, using your use and pwd in the command. The command is (I imagine) supposed to be run in the mysql command line client, it is nothing to do with node-red.