Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to get mysqli set up for php5 but apt tries to substitute php5-mysql for php5-mysqli, which doesn't exist. Does the mysql package also carry the mysqli extension, or do I need to find the source and compile it somewhere?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

From the description of the package php5-mysql(version 5.3.10-1ubuntu3.2) :

This package provides modules for MySQL database connections directly from PHP scripts. It includes the generic "mysql" module which can be used to connect to all versions of MySQL, an improved "mysqli" module for MySQL version 4.1 or later, and the pdo_mysql module for use with the PHP Data Object extension.

So, the package php5-mysql does contain support for MYSQLi extension.

share|improve this answer
    
I didn't see the description on Ubuntu package search for some reason. –  hexafraction Jun 29 '12 at 18:27
    
@ObsessiveFOSS So, sometimes GUI tools like synaptic can be useful over command line tools, too. :) –  Samik Jun 29 '12 at 18:31
    
I wasn't using a command-line, I was looking on the website. –  hexafraction Jun 29 '12 at 18:32
    
@ObsessiveFOSS Please don't mind, that comment wasn't specifically targeted to you, it's just my expression, because I myself use apt-get most of the time unless I really have to read the description of an available package. –  Samik Jun 29 '12 at 18:37
    
Sorry, I was just trying to clarify. Also, should we need another comment for some reason, I suggest moving to chat. –  hexafraction Jun 29 '12 at 18:38
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.