Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

your PHP server doesn’t have the MySQL module loaded or you can’t use mysql_(p)connect function

New Here ,
Jan 26, 2016 Jan 26, 2016

your PHP server doesn’t have the MySQL module loaded or you can’t use mysql_(p)connect function. how to solver it? with dreamweaver cs6

TOPICS
Code , Error
11.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Jan 26, 2016 Jan 26, 2016

The mysql module is deprecated and you should use MySQLi or PDO for database connections.

You can verify which database connection methods are available by running php on your server. To do so, create a new PHP file, place in it the following code:

<?php

phpinfo();

name it info.php, and upload it to your server. Then run it. It will report which database connection methods are available.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Jan 26, 2016 Jan 26, 2016
LATEST

I was in a hurry when I posted earlier. Here is some more info.

When you run phpinfo(), you are shown a screen that has a long list of the features that are activated in your installation of PHP. Scroll down to the section with the title "mysqli." Look above it and see if there is a section called "mysql" and if it is listed as "enabled."

As Nancy said, switch to mysqli or PDO.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 26, 2016 Jan 26, 2016

To add more to what Rob said, you should not be using the deprecated Server & Database panels in DW.  They were removed from DW CC for a reason.  The code is grossly outdated and incompatible with modern servers running the latest versions of PHP.

If you can't code manually with MySQLi (improved) or PDO, you can purchase commercial extensions to replace the deprecated panels in DW.

http://www.webassist.com/dreamweaver-extensions/mysqli

http://www.dmxzone.com/go/22096/updated-replacing-dreamweaver-server-behaviors-with-dmxzone-extensio...

Nancy O.

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines