PHP file linked to MYSQL will not open: Uncaught Error: Class “mysqli” not found

I want to open the PHP file linked to MySQL, but the following error keeps appearing.
I’ve already deleted the “;” before “extension=mysqli” from the pp-ini file, and then I’ve re-executed my computer, but it still doesn’t work.
Does anyone know the solution?

enter image description here

  1. Already removed the annotation of “extended-mysqli” in “php.ini-production file”.
  2. Hope the php linked to mysql works properly.

  • Please run php -v and let me now your version of php, because you might need to write mysql for older versions of php, PHP<5.0

    – 

  • 1

    php only recognizes php.ini. whatever “php.ini-production”, “php.ini-fun”, “php.ini-playground” are ignored. You are supposed to rename one of the prebuilt template ini files.

    – 

  • Thank you for your answer but My php version is PHP Version 8.2.10.

    – 

Leave a Comment