Skip to main content
Participating Frequently
March 26, 2008
Question

Your PHP server doesn't have the MySQL module loaded or you can't use the mysql_(p)connect functions.

  • March 26, 2008
  • 6 replies
  • 45028 views
I've just started using Dreamweaver and PHP and MySQL and i was following the article "Setting up a PHP development environment for Dreamweaver" and everything was going fine...just according to the writer, but in the end when i tried to connect the database in dreamweaver, it gave this error

"Your PHP server doesn't have the MySQL module loaded or you can't use the mysql_(p)connect functions."

ive tried to solve this problem by many ways but its not getting solved. kindly help me!!

This topic has been closed for replies.

6 replies

Participant
August 21, 2017

Dreamweaver does not support mySQLi "i" or pdo_mysql you get that error when trying to connect to the DB when the version is :i:.... so you cannot use Dreamweaver with  mySQLi... natively but you can use and extension. I found DMX makes one that you can use with the modern PHP7 and mySQLi versions....

Here is the link to the extension: https://www.dmxzone.com/go/22072/dmxzone-database-connector-php  

Inspiring
March 26, 2008
AS9797 wrote:
> phpinfo() is running fine.

Yes, but is mysql listed among the extensions supported? It should be
roughly halfway down the page. Also check the value of Loaded
Configuration File (the seventh item from the top of the page generated
by phpinfo()). Does it point to the version of php.ini that you have
been checking?

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
AS9797Author
Participating Frequently
March 27, 2008
should i chk for the extensions supported in the php.ini file or the phpinfo page?

also loaded configuration file is listed as none in the phpinfo page... should i change it in php.ini?
AS9797Author
Participating Frequently
March 26, 2008
the php version is 5.2.5 and the connection script has this line only

if (!function_exists('mysql_connect') || !function_exists('mysql_pconnect')

but it doesnt make any difference i guess!!
Inspiring
March 26, 2008
AS9797 wrote:
> I've just started using Dreamweaver and PHP and MySQL and i was following the
> article "Setting up a PHP development environment for Dreamweaver" and
> everything was going fine...just according to the writer, but in the end when i
> tried to connect the database in dreamweaver, it gave this error
>
> "Your PHP server doesn't have the MySQL module loaded or you can't use the
> mysql_(p)connect functions."
>
> ive tried to solve this problem by many ways but its not getting solved.
> kindly help me!!
>
>
>
You may have earlier version of PHP, should be at least v4,
Try changing "mysql_pconnect" to "mysql_connect" in your connection script.

Mick
AS9797Author
Participating Frequently
March 26, 2008
phpinfo() is running fine. i checked the extension in php.ini and found that ";" was already removed.

whats next?
Inspiring
March 26, 2008

> I've just started using Dreamweaver and PHP and MySQL and i was following
> the
> article "Setting up a PHP development environment for Dreamweaver" and
> everything was going fine...just according to the writer, but in the end
> when i
> tried to connect the database in dreamweaver, it gave this error

Sounds like MySQL wasn't installed. The easiest way to install MySQL,
PHP and a web server is through WampServer
http://www.wampserver.com/en/index.php - installs everything you need.


AS9797Author
Participating Frequently
March 26, 2008
mysql is installed and is working. but the dreamweaver environment is giving this same error...dont know what to do!