Skip to main content
adamv42468171
New Participant
July 30, 2018
Question

Mysql module error

  • July 30, 2018
  • 5 replies
  • 3354 views

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

i was following one guy on youtube, everything was good until i came on connecting database with dreamveawer. I get this error..what now? I bough dreamveawer today and i am lost...i have xampp running mysql and apache, one guy was on teamviewer and he said that it is dreamveawer thing and my codes are tight..he told me to quit dreamveawer lul

    This topic has been closed for replies.

    5 replies

    Participating Frequently
    February 13, 2019

    Does anyone found a positive answer for that question?

    I am having the above screen at the time I try to "connect" to a sql database. I am using DreamW CC, and XAMPP V3.2.2. All services (apache, MySQL, Filezilla) are up and running. Need to connect to a MySQL database. Any inputs, please

    Community Expert
    February 13, 2019

    What version of PHP?

    Have checked to make sure its not commented out in php.ini ?

    Paul-M - Community Expert
    Community Expert
    February 13, 2019

    ;   extension=mysqli

    change to:

    extension=mysqli

    save and restart apache

    ...Look at updating your site/application to PHP 7 & mySQLi in the near future if you can ....

    Paul-M - Community Expert
    adamv42468171
    New Participant
    July 30, 2018

    When i want to connect database with mysql in dreamw. i get that error

    Nancy OShea
    Community Expert
    July 30, 2018

    The deprecated server behavior panels were removed from DW CC because they are woefully outdated and not secure.   You should not be using them for current projects.

    If you're using a 3rd party extension from WebAssist, you will need to drop back to an earlier version of DW CS6 that has the old panels installed.

    MySQLi Server Behaviors | Dreamweaver extension | WebAssist

    Nancy O'Shea— Product User, Community Expert & Moderator
    adamv42468171
    New Participant
    July 30, 2018

    It writes sucessfully connected, but when i press + in dreamveawer it says same error

    Nancy OShea
    Community Expert
    July 30, 2018

    I don't understand what you mean by press + in Dreamweaver.  Can you post a screenshot?

    Nancy O'Shea— Product User, Community Expert & Moderator
    Nancy OShea
    Community Expert
    July 30, 2018

    Have you created the MySQL database in your local testing server yet?

    Have you populated it with some tables and data?

    Generic Connection Script.

    <?php

    $con = mysqli_connect("localhost","username","password","database");

    // Check connection

    if (mysqli_connect_errno())

      {

      echo "Failed to connect to MySQL: " . mysqli_connect_error();

            }

            else echo "Successfully connected, happy coding!"

    ?>

    <?php phpinfo() ?>

    Nancy O'Shea— Product User, Community Expert &amp; Moderator
    Nancy OShea
    Community Expert
    July 30, 2018

    Which version of DW do you have?

    Nancy O'Shea— Product User, Community Expert &amp; Moderator