Page 1 of 1

problem connecting to database

Posted: Fri Jun 02, 2006 12:58 am
by nutstretch
I am using dreamweaver 8 as my development tool. I have installed apache, php and mysql on my machine and the php is working ok. I am trying to connect to a database and am unable. I am getting the error 'Your PHP server doesn't have the MYSQL module loaded or can't use the mysql_(p)connect function.

Does this mean I have missed a step when installing? I can't seen to find where i need to load it etc. My old machine worked, this is a new machine. As always didn't take notes last time lol. I an running Apache 2, PHP5 and MYSQL 4

Any help would be appreciated

Nuts :?

Posted: Sat Jun 03, 2006 8:05 am
by ddragas
In php.ini remove ";" before extension=php_mysql.dll

from

Code: Select all

;extension=php_mysql.dll
to

Code: Select all

extension=php_mysql.dll

Posted: Sat Jun 03, 2006 8:48 am
by nutstretch
Thanks for replay.

I have done this and still no joy. I have also changed extension directory to be extension_dir = "c:\PHP5\ext" which is where the
php_mysql.dll is held but when i start my apache server it says it can't find the php_mysql.dll

Posted: Sat Jun 03, 2006 9:58 am
by ddragas
php_mysql.dll should be in root of php foder

C:\PHP\


at least that way is on my comuter

Posted: Sat Jun 03, 2006 2:29 pm
by nickvd
Try putting the mysql dll file into C:\windows\

IIRC, that's where it needed to go for me...