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

Recommended Answers

All 3 Replies

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

Oh ok I see, the language I'm using is php

<?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);
?>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.