During install: PHP does not have MySQL support enabled. During install: PHP does not have MySQL support enabled.
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

During install: PHP does not have MySQL support enabled.

Started by bluefan, April 08, 2006, 04:00:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bluefan

Hi everyone,

When I tried to install coppermine 1.4.4, I got this error:

The following errors were encountered and need to be corrected first:
PHP does not have MySQL support enabled.

This really looks strange, I installed php 5, and looking at info.php I see:
'--with-mysql=shared,/usr/nekoware/mysql4'
Which points to my mysql4 installation. And mysql works fine.
phpMyAdmin handles mysql also fine, so it must be working, right? what can it be? I've got mysql, I've got php5, is there some other strange way those two don't see eachother? The configuration looks perfect.
I'm using Irix 6.5.22 as OS.

Nibbler

That message is triggered when the function mysql_connect does not exist and so Coppermine can't connect to the db. Maybe you have phpmyadmin set to use mysqli, which Coppermine does not yet support.

bluefan

I just checked, I installed mysql, not the mysqli.
Strange

EDIT: might be just a noob thing:
In the php.ini, I found Dynamic Extensions, and mysql was commented out.
Would this be the problem? The configure command I found in info.php gave (also) this:
'--with-mysql=shared,/usr/nekoware/mysql4' '--with-mysqli=shared,/usr/nekoware/mysql4/bin/mysql_config'
Wouldn't that be enough?

Nibbler

Do you have a full section in phpinfo named 'MySQL' or can you only see it mentioned in the configure command ?

bluefan

Just the configure command.
Is that because the mysql is commented out in theĀ  Dynamic Extensions section of php.ini?

EDIT: Consider me a noob, outcommenting the mysql in php.ini was enough to get coppermine going, info.php gives now a mysql section, all is wel. Stil wondering about phpmyadmin, how it still got to mysql.