Jump to content
Fórum Script Brasil
  • 0


Olá pessoal,

Estou com problemas para conectar o banco de dados utilizando PDO, uso o MySQL.

quando executo a conexao com o banco aparecem as seguintes mensagens de erro:

( ! ) Fatal error: Uncaught exception 'PDOException' with message ' in C:\wamp64\www\phpCRUD\config\Conecta.php on line 11
( ! ) PDOException: in C:\wamp64\www\phpCRUD\config\Conecta.php on line 11
Call Stack
# Time Memory Function Location
1 0.0003 235888 {main}( ) ...\login.php:0
2 0.0006 240904 include_once( 'C:\wamp64\www\phpCRUD\core\Login.php' ) ...\login.php:3
3 0.0013 253496 Conecta->__construct( ) ...\Login.php:5
4 0.0013 253984 __construct ( ) ...\Conecta.php:11


Não sei onde estou errando, alguém poderia me ajudar?

Segue o código da configuração do banco:


E abaixo arquivo conf.php:


Share this post

Link to post
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

Cloud Computing

  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...