MySQL Flask connection stopped working
Hi!
I'm getting this error now when connecting to my mysql db after redeploying the standard railway image for an updated mysql version.
It seems my only option was to go through users to switch to a new password security setting as the previous default has removed. When exploring with the workbench I get this error
However, even when running this code I still get the error above.
Naturally, all code is sensitivized for sharing.
13 Replies
Project ID:
f3f3aa54-1f32-4a2a-9e9a-61d26191712d
f3f3aa54-1f32-4a2a-9e9a-61d26191712d
Naturally I'd love to upgrade my code's security and the provider closing down on an auth method is a pretty big sign to move into the direction they want us to - but it seems my code won't budge.
append
--mysql-native-password=ON
to your database's start commandAttempted but doesn't seem to have an effect
Also FYI it's marked for complete deprecation so I'm not sure this is a real solution
are you sure you did that correctly? it looks like you removed every other flag
There was no other flag previously, yes
how long ago did you deploy this database
Well before the redeploy roughly 5 months, but the most recent redeploy that screwed things up was 6 days ago
The redeploy was meant to rebuild the image with a more recent version of mysql and nothing else.
The deployments are as basic as they come with no modifications on my end.
then I think it's best to pin your service to I think mysql 8.3.0
yeah it was deprecated in 8.4.0
I'm thinking about migrating the tables because obviously there's some issues with that as well - since they forced some tabular changes as well that make running servers in lower versions connected to 8.4.0 tables
whatever works best for you!