Fix “mbstring extension missing” Error from phpMyAdmin

Last night when I downloaded and ran the latest portable version of XAMPP(with PHP7), I encountered an error message which looks like this.

Mbstring Extension Missing Error MessagephpMyAdmin page displayed this error message.

After googling for few minutes, I was able to fix this issue and I am going share it how I did that.

Step 1: First thing first, find the “php.ini” file from “xampp\php” directory.

Step 2: Open up the php.ini file with your favorite HTML editor and search for the following line.

; extension_dir = "ext"

Simply remove the semicolon “;” from the very beginning of this line. Replace the word “ext” with your physical hard drive location for “ext” folder(it should be inside “php” folder). Since my “xampp” folder was on my “D:” drive. The URL was “D:\xampp\php\ext”. So the full line on php.ini file should be like this:

extension_dir = "D:\xampp\php\ext"

Step 3: Now find the following line from the php.ini file.


Just like before simply remove the semicolon “;” from the very beginning of this line.

Step 4: Save the changes on php.ini file and restart your “XAMPP Control Panel”.

Note: Following the steps mentioned above should resolve the issue and you should be able to see your “phpMyAdmin” window. However, in my case it didn’t and it showed another error message that says:

The mysqli extension is missing. Please check your PHP configuration. See our documentation for more information.

In order to fix it, go back to your php.ini file and open it up with your HTML editor just like before. Find the following line:


Again remove the semicolon ";" and save the php.ini file. Restart the XAMPP Control panel. It finally resolved my issue and I was able to go see my phpMyAdmin window.

If you encounter any other issue, feel free to drop me a line from the comment section below. I will try to help you out if I may. I hope you find this post to be useful.

Today In History




  1. ShubhadaPublished: 4 years ago

    Many thanks . That solved my problem.

  2. Gavin ScottPublished: 5 years ago

    Fixed – missing a “\”


    • Iftekhar BhuiyanPublished: 5 years ago

      Gavin, You are welcome 🙂

  3. JRPublished: 6 years ago

    Thanks so much…! Solved the issue. Needed Step 4 as well.

    • Iftekhar BhuiyanPublished: 5 years ago

      JR, You are welcome 🙂

  4. LucianoPublished: 6 years ago

    I followed your instruction and saw my lines on php.ini just as you would fix it. But still get the “missing mbstring” error.

    • Iftekhar BhuiyanPublished: 6 years ago

      Luciano, it is almost impossible to solve your issue until and unless I really get to see the actual error message. Can you post the exact error message here? It would be whole lot easier for me to understand and then prescribe a solution. Thanks.

  5. WendyPublished: 6 years ago

    Hey there,

    I have tried your current solution as well as many others for the mbstring missing and I am still receiving the same issue. Uninstalling and installing seems very troublesome enough for me as it always “requires” something that is already on my system but claims it’s not. Is there any other way to fix this?

    • Iftekhar BhuiyanPublished: 6 years ago

      Hi Wendy, I would suggest you to try out the portable version of XAMPP, it would make your life lot easier. I personally use the portable version as well and had never encountered any additional issues. If xampp says, it “requires” something or something is “missing” then most probably your system doesn’t have those files or xampp’s configuration file couldn’t locate them correctly. Can you be more specific? I can only help you, if I get to know what exactly the error message is. Thanks.

Leave a Reply

Note: Convet HTML, PHP, JavaScripts from HTMLify, before posting from comment section.
License: By submitting a comment here you grant this site a perpetual license to reproduce your words and name/Web site in attribution. Please use your real name or a pseudonym (i.e., pen name, alias, nom de plume) when commenting. If you add your site name, company name, or something completely random, I'll likely change it to whatever I want.