You must have the MySQL PHP module installed ????

Meelmuis
Meelmuis's picture

Joined: 2003-05-12
Posts: 70
Posted: Mon, 2004-09-13 10:25

Hello all,

Maybe it's a very stupid question, but i cannot figure out how to solve this. I simply do not know where to download this module. I have php 5.1 installed and MySQL 4.0.21 installed. Does it install this automaticicly and is it misconfigured? Or do i need to install it in a particular order? Or can somebody tell me where to download this module.

I hope somebody can help me...

Thnx in advance!!!

Meelmuis

 
baschny
baschny's picture

Joined: 2003-01-04
Posts: 328
Posted: Mon, 2004-09-13 11:16

Meelmuis, you forgot to mention which OS you are running this. On Windows, the PHP binary distribution comes with the extensions as separate .dll files that have to be activated in php.ini to be loaded. If this is your case, edit the php.ini file. Find the section that loads the "extensions" and you will see somewhere something like "extension = php_mysql.dll" with a semi-colon in front of it. Remove the semi-colon (i.e. uncomment this line).

Then restart your IIS/Apache to get have PHP load its php.ini file again. It should then load the mysql-module. To check if it is loaded, create a new file called "phpinfo.php" in your webserver's document root with the following content:

<?php phpinfo(); ?>

browse to that file and you will see all info on the current PHP installation (including the loaded extentions).

 
Meelmuis
Meelmuis's picture

Joined: 2003-05-12
Posts: 70
Posted: Mon, 2004-09-13 14:00

Ernst,

Thnx! But I already found out why it wasnt working. The PHP 5.1 windows distribution was not containg the extra extensions... I downloaded PHP 4.3.8 and that worked... I now started testing and playing with G2..

But thnx anyway for you reaction......

Greetz,

Meelmuis

 
baschny
baschny's picture

Joined: 2003-01-04
Posts: 328
Posted: Mon, 2004-09-13 15:06

Meelmuis, both php 5.0.1 (not 5.1) and 4.3.8 binary packages for Win32 contain the mysql-extention. The difference is that on 4.3.8 this module is compiled into the main PHP-binary, and on 5.0.1 it is provided as a loadable extention (dll), which has to be enabled in php.ini before it is really loaded.

But anyway... I'm glad you are a happy G2 user now, have fun!

 
ov7

Joined: 2006-12-17
Posts: 1
Posted: Sun, 2006-12-17 17:52

Hi,
I am running Fedora 6 with PHP 5.1.6. I have modified the php.ini to include extension=mysql.so. Although, I did notice that inside the directory module there is no mysql.so file in there. What should I do? How to I get that module.
Please help.
Thanks
Ov7

 
ZonaX
ZonaX's picture

Joined: 2006-11-02
Posts: 64
Posted: Mon, 2006-12-18 08:54

Download it :>

Signature____________
Have any comment to this post and dont want to place a comment via the forum? Feel free to mail me: Send My A Save Email System

 
srram

Joined: 2007-09-27
Posts: 1
Posted: Thu, 2007-09-27 18:36

you are missing php-mysql

> yum install php-mysql

and you are done

 
pentalive

Joined: 2008-08-28
Posts: 1
Posted: Thu, 2008-08-28 15:55

I have yum installed php-mysql but I still get this error on step 5 of the install.

I am using Fedora 9, and mysql

mysql Ver 14.12 Distrib 5.0.51a, for redhat-linux-gnu (i386)

 
gooberus

Joined: 2005-02-11
Posts: 1
Posted: Fri, 2008-09-12 18:40

Please help,
I've uncommented the line extension=php_mysql.so AND extension=php_mysql.dl but I am still stuck on the installation page where it says "You must have the MySQL PHP module installed". Thanks in advance.

Here is what my phpinfo.php page returned.

PHP Version 5.2.6

System Windows NT WILBUR 5.0 build 2195
Build Date May 2 2008 18:01:20
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared" "--with-extra-includes=C:\Program Files (x86)\Microsoft SDK\Include;C:\PROGRA~2\MICROS~2\VC98\ATL\INCLUDE;C:\PROGRA~2\MICROS~2\VC98\INCLUDE;C:\PROGRA~2\MICROS~2\VC98\MFC\INCLUDE" "--with-extra-libs=C:\Program Files (x86)\Microsoft SDK\Lib;C:\PROGRA~2\MICROS~2\VC98\LIB;C:\PROGRA~2\MICROS~2\VC98\MFC\LIB"
Server API Apache 2.0 Handler
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\WINNT
Loaded Configuration File C:\Program Files\PHP\php.ini
PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519
Debug Build no
Thread Safety enabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, data, http, ftp, compress.zlib
Registered Stream Socket Transports tcp, udp
Registered Stream Filters convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.*

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2008-09-13 03:18

If you're using Apache, PHP and MySQL on windows, just save yourself a ton of time and install XAMPP http://www.apachefriends.org/en/xampp.html
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here