Strapi build fails

When building a Strapi application using a mysql database, I am getting the following error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client. Can anyone help?
7 Replies
Percy
Percy•2y ago
Project ID: N/A
stevenurk9494
stevenurk9494OP•2y ago
Project ID: N/A
Fragly
Fragly•2y ago
Make sure you're using mysql v8+ I had the same problem earlier, was using quickdb.js which used a very old mysql under the hood
stevenurk9494
stevenurk9494OP•2y ago
But how can I install a mysql v8+ version using Railway?
Fragly
Fragly•2y ago
Railway already provides mysql for you as far as I'm aware, just make sure the library you're using uses mysql v8 + I think, I'm not too sure myself - i'm new to databases and stuff 🤤
Brody
Brody•2y ago
the strapi template from railway deploys just fine https://github.com/railwayapp-templates/strapi have a look at it and see what you're doing differently, and fragly is right, that error means the mysql client library is outdated strapi uses postgre by default, postgre is more cost effective than mqsql (postgre doesnt typically use as much ram) so im not even sure why you would want to use mysql. if you already have strapi data in mysql then there are ways to import to postgre
stevenurk9494
stevenurk9494OP•2y ago
ah okay. Well than I know enough, thank you guys for the help!
Want results from more Discord servers?
Add your server