I wanted to connect to the database, but an error occurs. In MAMP, everything works correctly: Apache Server and MySQL Server. I am using version 8.0.1 of PHP on Windows 10.
Actions taken:
- I uncommented "extension=mysqli" (didn't help)
- Tried replacing the line with "extension=C:\MAMP\bin\php\php8.0.1\php_mysqli.dll" (didn't work)
- Checked if there is "on" in the line "mysqli.allow_local_infile = on" (didn't help)
Ask for Help!
P.S. I can provide additional photo if necessary.
Note
I did all the above steps given in the answer to a similar question, but it seems to me the main difference is that I use MAMP rather than XAMPP nor LAMP.