mysqli扩展缺少debian

时间:2014-04-23 20:50:45

标签: mysql sql-server linux ubuntu debian

我尝试在debian上安装mysql-sever(WD mycloud live)

我已尝试过在谷歌上找到的所有内容,但没有成功

/etc/php5/conf.d/mysqli.ini不存在

for install我用了apt-get -f mysql-server mysql-client mysql-common

到目前为止我已经

运行mysql

 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

我安装了webmin,我可以看到我的mysql-server信息,我有

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

1 个答案:

答案 0 :(得分:11)

sudo apt-get install php5-mysql

将安装包含旧的和新的包,所以之后您需要做的就是添加

extension=mysqli.so

在你的php.ini中,重新启动apache,它应该可以工作。

来源: