R
Railway9mo ago
Wil

change authentication method of mysql database

im getting this error on my application mysqli_connect(): The server requested authentication method unknown to the client [caching_sha2_password] i never had this problem before is just happening in railway
8 Replies
Percy
Percy9mo ago
Project ID: f3475e58-a033-43d5-949d-e50612cc3675
Wil
WilOP9mo ago
f3475e58-a033-43d5-949d-e50612cc3675
Brody
Brody9mo ago
your mysql client would need to be compatible with caching sha2 password, what is your mysql client?
Wil
WilOP9mo ago
https://www.php.net/manual/en/function.mysqli-connect.php we have one php backend and uses this its probably the version of php its running in version 7.1
Brody
Brody9mo ago
yep that's quite old
Wil
WilOP9mo ago
Stack Overflow
php mysqli_connect: authentication method unknown to the client [ca...
I am using php mysqli_connect for login to a MySQL database (all on localhost) <?php //DEFINE ('DB_USER', 'user2'); //DEFINE ('DB_PASSWORD', 'pass2'); DEFINE ('DB_USER', 'user1'); DEFINE ('
Wil
WilOP9mo ago
should i try?
Brody
Brody9mo ago
try updating the php version first
Want results from more Discord servers?
Add your server