I can’t connect to the database because of the following error:
Call to undefined function mysqli_init().
The extensions in the php.ini file are enabled, and the files are in the ext folder. I tried using the absolute path, but that caused another error:
Database error and a warning:
The authentication method requested by the server is unknown to the client.
I’ve already checked the file with the database credentials and everything seems correct. I’ve enabled the extensions in the php.ini file and verified they’re in the correct ext folder. In the httpd.conf of apache file, I’ve set the root and the port with the module to the PHP executable and phpinidir to the root.
If anyone can help me, I’m using Windows.
Sharon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.