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

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

Community Beginner ,
Sep 19, 2022 Sep 19, 2022

Copy link to clipboard

Copied

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.erro.jpgerro2.jpg

Views

149

Translate

Translate

Report

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

correct answers 1 Correct answer

Community Expert , Sep 19, 2022 Sep 19, 2022

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.

 

Votes

Translate

Translate
Community Expert ,
Sep 19, 2022 Sep 19, 2022

Copy link to clipboard

Copied

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...

 

Wappler, the only real Dreamweaver alternative.

Votes

Translate

Translate

Report

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 Beginner ,
Sep 19, 2022 Sep 19, 2022

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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 ,
Sep 19, 2022 Sep 19, 2022

Copy link to clipboard

Copied

It will only work on PHP < = version 5.6. 

 

As you can see in the other post by @Deleted User , 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, the only real Dreamweaver alternative.

Votes

Translate

Translate

Report

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 Beginner ,
Sep 19, 2022 Sep 19, 2022

Copy link to clipboard

Copied

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?

Votes

Translate

Translate

Report

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 ,
Sep 19, 2022 Sep 19, 2022

Copy link to clipboard

Copied

LATEST

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.

 

Wappler, the only real Dreamweaver alternative.

Votes

Translate

Translate

Report

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