phpMyAdmin - The MySQL Extension is Missing

后端 未结 10 1828
旧巷少年郎
旧巷少年郎 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 16:55

    Installing bzip2 and zip PHP extensions solved my issue in Ubuntu:

    sudo apt-get install php7.0-bz2
    sudo apt-get install php7.0-zip
    

    Use php(you version)-(extension) to install and enable any missing modules that is required in the phpmyadmin readme.

    0 讨论(0)
  • 2020-12-11 16:57

    At first make sure you have mysql installed properly. You can ensure it just by checking that whether you can access mysql using mysql command promp. So if you mysql is working then probably it is not loading. For that follow the steps given below

    First of all, you must find your php.ini. It could be anywhere but if you create a small php file with the

    <?php phpinfo(); ?>
    

    script it will tell you where it is. Just look at the path of loaded configuration file. Common places include /etc/apache/, /etc/php4/apache2/php.ini, /etc/php5/apache2/php.ini or even /usr/local/lib/php.ini for Windows it may be C:\Users\username\PHP\php.ini

    Edit your server’s php.ini and look for the following line. Remove the ‘;’ from the start of the line and restart Apache. Things should work fine now!

    ;extension=mysql.so
    

    should become

    extension=mysql.so
    

    For windows it will be

    ;extension=mysql.dll
    

    should become

    extension=mysql.dll
    
    0 讨论(0)
  • 2020-12-11 17:01

    You need to put the full path in the php ini when loading the mysql dll, i.e :-

    extension=c:/php54/ext/php_mbstring.dll
    extension=c:/php54/ext/php_mysql.dll

    Then you don't need to move them to the windows folder.

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

    Just check your php.ini file, In this file Semicolon(;) used for comment if you see then remove semicolon ;.

    ;extension=mysql.dll
    

    Now your extension is enable but you need to restart appache

    extension=mysql.dll
    
    0 讨论(0)
  • 2020-12-11 17:07

    I just add

    apt-get install php5-mysqlnd
    

    This will ask to overwrite mysql.so from "php5-mysql".

    This work for me.

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

    Your installation is missing some php modules, there should be a list of required modules in the phpmyadmin readme. If you recently enabled the modules, try restarting the apache service / daemon.

    Edit: As it seems, there is no single "enable these modules" in the docs, so enable either mysql or mysqli in your php.ini (you might need to install it first).

    The two messages are not important if you do not intend to upload or download compressed file within phpMyAdmin. If you do, enable the zlib and / or bz2 modules.

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