problem connecting to database

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
nutstretch
Forum Contributor
Posts: 104
Joined: Sun Jan 11, 2004 11:46 am
Location: Leicester

problem connecting to database

Post 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 :?
User avatar
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

Post 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
nutstretch
Forum Contributor
Posts: 104
Joined: Sun Jan 11, 2004 11:46 am
Location: Leicester

Post 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
User avatar
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

Post by ddragas »

php_mysql.dll should be in root of php foder

C:\PHP\


at least that way is on my comuter
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Post by nickvd »

Try putting the mysql dll file into C:\windows\

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