mysqli extension is missing debian

只谈情不闲聊 提交于 2019-12-10 13:38:54

问题


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

回答1:


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


来源:https://stackoverflow.com/questions/23254914/mysqli-extension-is-missing-debian

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!