mysqli扩展名缺少debian [英] mysqli extension is missing debian

查看:129
本文介绍了mysqli扩展名缺少debian的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

我尝试了在google上找到的所有内容,但均未成功

i have tried everything i found on google but no success

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

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

我使用apt-get -f mysql-server mysql进行安装-client mysql-common

for install i used 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

i安装的webmin在那里,我可以看到我的mysql服务器信息,

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


推荐答案

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

在您的php.ini中,重新启动apache即可。

in your php.ini, restart apache and it should work.

来源:

  • https://stackoverflow.com/a/10835420/3566788

这篇关于mysqli扩展名缺少debian的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆