0

Hi, i'm trying to setup a connection in dreamweaver.

so now I have the diologbox open with the different fields I have to write in.

First no problem with the: connection name, mysql server, user name and database fields.
But when I get to the field password, I don't really know what to write, because I don't think I created a password.
I only created a database in phpmyadmin on localhost, so what do I write in the password field.

thanks :-)

- Kischi

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by tyson.crouch
0

Okay,

first off, the problem you have ISN'T with dreamweaver, it is with which-ever language you are using. The password section, if was not set should be set as "".


Which language are you using to connect to the MySQL database? JSP/PHP/Python...?
This will help in identifying which is the best way to go about helping you.

Regards,
TC

0
<?php
    // Connects to database (Servlet, username, password)
    $con = mysql_connect("localhost","peter","abc123");
    // Checks if database is connected
    if (!$con){
        // If not connected, output the following message.
        die('Could not connect: ' . mysql_error());
    }

    // Place your code here


    // ALWAYS close your database connections
    mysql_close($con);
?>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.