Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
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

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

463
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

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.

 

Translate
Community Expert ,
Sep 19, 2022 Sep 19, 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...

 

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
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 Beginner ,
Sep 19, 2022 Sep 19, 2022

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

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

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 is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
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 Beginner ,
Sep 19, 2022 Sep 19, 2022

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?

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 ,
Sep 19, 2022 Sep 19, 2022
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 is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
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