Skip to main content
Participant
September 20, 2022
Answered

error you php server doesn't have the MySQL module loaded or you can't use the mysql_(p)connect func

  • September 20, 2022
  • 1 reply
  • 436 views

Toda vez que tento fazer a conecção com o banco de dados, usando o menu ( janela/bancos de dados) no modo design do dreamweaver 2022 aparece este erro. Já mudei a versão do php ate 8.0. Já tentei conecção com servidor local e servidor na web e o erro continua. Alguém pode me ajudar, não achei ajuda em canto nenhum.

    This topic has been closed for replies.
    Correct answer BenPleysier

    Então, eu vi sim o post. Dessa forma usar uma string de conexão MySQLi (melhorada) funciona (mas apenas para o modo CODE) e eu quero usar as funcionalidades do DW no modo DESING para isso preciso fazer a conecção do banco de dado em modo DESING. Entendeu agora?


    The only way is to purchase the following extension for Dreamweaver

    https://www.webassist.com/product/mysqli

     

    Because Dreamweaver has deprecated many features that I used to use, I have gone to another code editor called Wappler.

     

    1 reply

    BenPleysier
    Community Expert
    Community Expert
    September 20, 2022

    Deprecated Dreamweaver server behaviours are not available for PHP versions 7+

     

    For more: https://community.adobe.com/t5/dreamweaver-discussions/your-php-server-doesn-t-have-the-mysql-module-loaded/m-p/10451365

     

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    Participant
    September 20, 2022

    Eu ja testei com o php 7.6 e com o php 8.0 e também não funcionou

    BenPleysier
    Community Expert
    Community Expert
    September 20, 2022

    It will only work on PHP < = version 5.6. 

     

    As you can see in the other post by @9261934 , you can 

     

    Try using a MySQLi (improved) conntection string.  Change code in red to your own values.

    <?php

    $con = mysqli_connect("localhost","your_username","your_password","database_name");

    // Check connection

    if (mysqli_connect_errno())

      {

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

            }

            else echo "Successfully connected to database, happy coding!"

    ?>

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!