Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mysqli extension is missing debian

i m try to install mysql-sever on debian (WD mycloud live)

i have tried everything i found on google but no success

/etc/php5/conf.d/mysqli.ini Dont exists

for install i used apt-get -f mysql-server mysql-client mysql-common

so far i have

mysql running

 PHP Version 5.4.11-1
 Linux WDMyCloud 3.2.26 #1 SMP Fri Dec 27 13:50:41 PST 2013 armv7l

 Additional .ini files parsed   
 /etc/php5/apache2/conf.d/10-pdo.ini, 
 /etc/php5/apache2/conf.d/20-apc.ini, 
 /etc/php5/apache2/conf.d/20-curl.ini, 
 /etc/php5/apache2/conf.d/20-pdo_sqlite.ini, 
 /etc/php5/apache2/conf.d/20-sqlite3.ini,
 /etc/php5/apache2/conf.d/include_path.ini

 mysql -- version -> mysql ver 14.14 distrib 5.5.35, for debian-linux-gnu (armv71) using readline 6.2

i installed webmin there i can see my mysql-server information, i have there

Path to mysqlshow command    - /usr/bin/mysqlshow
Path to mysqladmin command   - /usr/bin/mysqladmin
Path to mysql command        - /usr/bin/mysql
Path to mysqldump command    - /usr/bin/mysqldump
Path to mysqlimport command  - /usr/bin/mysqlimport
MySQL configuration file     - /etc/mysql/my.cnf

Mysql Unix socket            - /var/run/mysqld/mysqld.sock
Database files directory     - /var/lib/mysql
like image 657
Alvaro Louzada Avatar asked Apr 23 '14 20:04

Alvaro Louzada


People also ask

How do I find MySQLi extension?

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.

Is phpMyAdmin MySQL or MySQLi?

phpMyAdmin is a free software tool written in PHP that is intended to handle the administration of a MySQL or MariaDB database server.

Is MySQLi deprecated in PHP 7?

The oldest one uses the MySQL extension, which was deprecated as of PHP 5.5 and fully removed in PHP 7. The mysql() function no longer works in PHP 7.


1 Answers

sudo apt-get install php5-mysql

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, restart apache and it should work.

Source:

  • https://stackoverflow.com/a/10835420/3566788
like image 154
okias Avatar answered Oct 04 '22 22:10

okias