Forums | Mahara Community
Support
/
Installation problem - mysql extension
23 January 2011, 21:13
It keeps telling me that mysql extension is not installed:
"Your server configuration does not include the mysql extension."
I have set the values in config.php like this:
$cfg->dbtype = 'mysql5';
$cfg->dbhost = 'localhost';
$cfg->dbport = null;
$cfg->dbname = 'mahara';
$cfg->dbuser = 'mahara';
Anyone can help? I see the server has mysqli enabled when i do phpinfo():
mysqli
MysqlI Support | enabled |
---|---|
Client API library version | 5.0.45 |
Active Persistent Links | 0 |
Inactive Persistent Links | 0 |
Active Links | 0 |
Client API header version | 5.0.45 |
MYSQLI_SOCKET | /var/lib/mysql/mysql.sock |
Directive | Local Value | Master Value |
---|---|---|
mysqli.allow_local_infile | On | On |
mysqli.allow_persistent | On | On |
mysqli.default_host | no value | no value |
mysqli.default_port | 3306 | 3306 |
mysqli.default_pw | no value | no value |
mysqli.default_socket | no value | no value |
mysqli.default_user | no value | no value |
mysqli.max_links | Unlimited | Unlimited |
mysqli.max_persistent | Unlimited | Unlimited |
mysqli.reconnect | Off | Off |
27 January 2011, 8:22
It might not be anything to do with the problem, but note that mysqli and mysql are seperate php extensions. I thought Mahara actually used mysqli, but the error message implies it's just mysql. Was there also a mysql section?
What OS are you using? If Linux, what distribution and version?
27 January 2011, 20:43
Yes. I think Mahara checks for 'mysql' extension only, and not 'mysqli'.
Finally, I have to rebuild PHP to enable 'mysql' in addition to 'mysqli', then the problem is solved.
Thanks for your reply.