Non-user fault on "Can't connect to database"
Hi, recently i had problem with "can't connect to database" error, and i check 100 times if credentials are OK. On troubleshooting site there was this statement "it can be only wrong credentials". So for future people having this problem but credentials are ok try what worked for me:
I had mysql user with password hashed with "caching_sha2_password", which is apparently not supported on php 7.3 and lower, so the solution is to upgrade php to 7.4 or change hashing to other (for example mysql_native_password"
This discussion has been closed.