Connecting to MySQL server in production.

Hosted by DreamHost, my MySQL server in phpmyadmin cannot be connected by my NextJS application on DigitalOcean's app platform. I am faced with this error:
Error querying the database: Unknown authentication plugin `sha256_password'.
Error querying the database: Unknown authentication plugin `sha256_password'.
However, in localhost, it connects to the database perfectly. The environment variables are exactly the same.
3 Replies
Nurul
Nurul3w ago
Hi @lilnasbooty43 This is a known issue. One suggestion is that you should consider using caching_sha2_password as authentication plugin instead of sha256_password as it is preferred because of superior security and performance. https://github.com/prisma/prisma/issues/14417#issuecomment-1269444919
GitHub
MySQL: add support for sha256_password authentication plugin · Is...
Discussed in #14181 Originally posted by ansarizeeshan July 5, 2022 Bug description I am trying to connect to MySQL data : 5.7.33 and it is failing with below error.: Environment variables loaded f...
lilnasbooty43
lilnasbooty43OP3w ago
The site I have my database on does not allow access to my.cnf nor alter user and why does it work on localhost but not the site host?
Nurul
Nurul3w ago
Can you use MySQL 8.0? I believe this issue occurs only in older versions of MySQL
Want results from more Discord servers?
Add your server