≡ Menu

phpMyAdmin: mbstring PHP extension not found error

Question – When I open phpMyAdmin, I get the following error:

The mbstring PHP extension was not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results.

How do I fix this?

The solution is to install the package mbstring using yum or apt-get, depending on your Linux distribution.

The package phpMyAdmin is a web based front end to MySQL. It can be used for administration and usage of MySQL databases. It allows you to create new databases, run SQL queries on existing databases and view and kill currently running MySQL queries.

The package phpMyAdmin relies on the package mbstring.

To fix the error, you must install mbstring.

First check if mbstring is available for installation:

[root@server ~]# yum list | grep mbstring
php-mbstring.i686                          5.3.3-23.el6_4              updates
[root@server ~]#

So mbstring is available for installation. Let’s install it!

[root@server ~]# yum install php-mbstring
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.net.cen.ct.gov
 * extras: mirror.lug.udel.edu
 * rpmforge: mirror.lug.udel.edu
 * updates: mirrors.gigenet.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mbstring.i686 0:5.3.3-23.el6_4 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

 Package              Arch         Version                Repository       Size
 php-mbstring         i686         5.3.3-23.el6_4         updates         454 k

Transaction Summary
Install       1 Package(s)

Total size: 454 k
Installed size: 1.9 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : php-mbstring-5.3.3-23.el6_4.i686                             1/1
  Verifying  : php-mbstring-5.3.3-23.el6_4.i686                             1/1

  php-mbstring.i686 0:5.3.3-23.el6_4

[root@server ~]#

Now that php-mbstring is installed, the phpMyAdmin error should disappear!

Comments on this entry are closed.