wamp cannot load mysqli extension

前端 未结 18 2094
悲哀的现实
悲哀的现实 2021-01-11 10:16

WAMP installed fine, no problems, BUT...

When going to phpMyAdmin, I get the error from phpMyAdmin as follows:

Cannot load mysqli extension. Please c         


        
相关标签:
18条回答
  • 2021-01-11 10:26

    I got this problem for a long time.
    Tried all I've read on forums and this finally worked for me:
    Open your php.ini (I assume you've got the good one that is loaded...) and find this line mysqli.default_port = 3306
    change for
    mysqli.default_port = 80
    Restart all services
    Go to localhost/phpmyadmin -> won't work
    Reopen the php.ini file and retype this
    mysqli.default_port = 3306
    Restart all services
    Worked for me.

    0 讨论(0)
  • 2021-01-11 10:26

    I have just installed WampServer, and faced same problem. I have found solution, that works for me, it is ridiculously simple.

    1. Disable PHP extension php_mysqli.
    2. Restart WampServer, visit local phpmyadmin.
    3. Enable php_mysqli back.
    4. Repeat step 2.

    After few page refreshes, remaining errors plates (about MySQL and sqli) had gone.

    0 讨论(0)
  • 2021-01-11 10:30

    For me worked this, after searching all logs/internet/every non-normal things. You have to register dl by:

    Through application:

    WAMP -> PHP settings -> enable dl
    

    or

    # php.ini #
    
    ; Whether or not to enable the dl() function.  The dl() function does NOT work
    ; properly in multithreaded servers, such as IIS or Zeus, and is automatically
    ; disabled on them.
    ; http://php.net/enable-dl
    enable_dl = On
    
    0 讨论(0)
  • 2021-01-11 10:30

    i tried hard by installing the wamp again and again, by checking the php.ini file, by restarting the machine, by replacing the index.php file,

    but none works. then i go to the wamp/temp and deleted all files and it works fine now.

    0 讨论(0)
  • 2021-01-11 10:31

    in wampserver go to php.ini. open the file and uncomment extension=msql.dll by removing semicolon(;) for respective operating sytem.

    0 讨论(0)
  • 2021-01-11 10:35

    I had this problem and spent 2 hours trying all the solutions online, none worked.

    Tried this, and it woked:

    Change

    mysql.default_host =

    to

    mysql.default_host = localhost

    and restart WAMP. pay attention if you are using mysqli or not.

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