The installer was unable to detect any database support in PHP

Started by six_L, October 24, 2009, 12:16:07 PM

Previous topic - Next topic

six_L


Nathaniel

If you are trying to install SMF 1.1.x, then you need to have mysql installed on your server, and correctly configured with PHP.

If you are trying to install SMF 2, then you need mysql, postgresql or sqlite configured properly on your server.

Try asking your host about this issue, they can tell you if there is relevant database software installed on your server.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

six_L

thanks your response.

os: win 2003
php: 5.3.0
apache: 2.2.14
MySQL: 5.1.40
smf: 2.0 rc1.2

i reinstalled the MySQL and php. but still the error has been happened. MySQL works fine.

JimM

Jim "JimM" Moore
Former Support Specialist

six_L


JimM

Your phpinfo file shows that you have MySQLnd installed.  I don't think our installer supports that yet.  That's probably why it is reporting that there is no database support.
Jim "JimM" Moore
Former Support Specialist

six_L

Does not the installer support MySQL 5.1.40?
how do i can figure out the problem.?

JimM

Yep, however your phpinfo file does not show that as installed!  It shows MySQLnd 5.0.0-dev.
Jim "JimM" Moore
Former Support Specialist

six_L

i uninstalled the "mysqlnd 5.0.5-dev - 081106 - $Revision: 1.3.2.27 $", but the phpinfo shows its installtion. can't remove.

Norv

Please see eventually: http://dev.mysql.com/downloads/connector/php-mysqlnd/
As JimM noted, the first two extensions, by far the most used on various hosts, are supported by SMF, while the fourth mentioned there, the native MySQL driver, mysqlnd, available it seems since PHP 5.3 only (which is very new), is not supported.
In other words, you're missing the common MySQL-related libraries from PHP. (libmysql). Try installing it.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

six_L


six_L

php.ini
Quote
[PHP_MYSQL]
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_pdo_mysql.dll

httpd.conf
Quote
# For PHP 5 do something like this:
LoadModule php5_module "c:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
LoadModule php5_module "c:/php/libmySQL.dll"

the error has still been there.



Norv

To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

six_L

i reinstalled the mySQL 5.1.30, all is ok.
thanks your help.

Advertisement: