phpMyAdmin - The MySQL Extension is Missing

后端 未结 10 1829
旧巷少年郎
旧巷少年郎 2020-12-11 16:13

I installed everything separately (Apache, PHP, MySQL and phpMyAdmin) and do not use a compilation, everything works fine till now except phpMyAdmin.

The problem I

相关标签:
10条回答
  • 2020-12-11 17:11

    Just as others stated you need to remove the ';' from:
    ;extension=php_mysql.dll and
    ;extension=php_mysqli.dll

    in your php.ini to enable mysql and mysqli extensions. But MOST IMPORTANT of all, you should set the extension_dir in your php.ini to point to your extensions directory. The default most of the time is "ext". You should change it to the absolute path to the extensions folder. i.e. if you have your xampp installed on drive C, then C:/xampp/php/ext is the absolute path to the ext folder, and It should work like a charm!

    0 讨论(0)
  • 2020-12-11 17:12

    Some linux distributions have a php_mysql and php_mysqli package to install.

    0 讨论(0)
  • 2020-12-11 17:13

    In my case I had to install the extension:

    yum install php php-mysql httpd
    

    and then restart apache:

    service httpd restart
    

    That solved the problem.

    0 讨论(0)
  • 2020-12-11 17:15

    I had a similar issue, but it didn't help to add extension=mysql.so in my php.ini. It turned out that the mysql.so file was not in my extension folder nor anywhere else on my machine. Solved this by downloading the php source and building the extension manually and then copying it into the extension folder.

    0 讨论(0)
提交回复
热议问题