Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extension mysqli is missing, phpmyadmin doesn't work

I have a problem with phpmyadmin on ubuntu 12.04. I have already installed apache2, php5, mysql and phpmyadmin.

The phpinfo(); script, don't show nothing about mysqli or mysql extension.

When I try start phpmyadmin this error appear:

 ---- **phpMyAdmin - Error** ------- **The mysqli extension is missing. Please check your PHP configuration.** ---- 

In the php.ini file, I uncommented extension=mysql.so line, but doesn't work...

Anyone have another posible solution?

like image 850
Jeremas Avatar asked May 26 '12 19:05

Jeremas


People also ask

How can I enable the MySQLi extension in PHP 8?

If not an Ubuntu user then you can just rename php-prodcution. ini file to php. ini and enable the extension by removing semicolon in the php. ini file.

How do I find MySQLi extension?

Check if MySQLi is Installed The first step is to check if MySQLi extension is installed. You can do that by visiting a phpinfo() page that you made, or by running this command: php -m | grep mysqli.


2 Answers

sudo apt-get install php5-mysql sudo apt-get install php5-mysqlnd  

try both of alternatively it works for me

like image 36
Hardik Gajjar Avatar answered Oct 13 '22 00:10

Hardik Gajjar


Latest phpMyAdmin versions require mysqli extension and will no longer work with mysql one (note the extra "i" at the end of its name).

For PHP 7.3

sudo apt-get install php7.3-mysqli 

For PHP 8

sudo apt-get install php8.0-mysqli 

Will install package containing both old one and the new one, so afterwards all you need to do is to add

extension=mysqli.so 

in your php.ini, under the subject Dynamic Extensions.

Restart apache:

sudo systemctl restart apache2 

Authenticate if needed and press enter.

Should be done! If problem still occurs remove the browser cache.

like image 197
c2h5oh Avatar answered Oct 12 '22 22:10

c2h5oh