Connecting to a database

Connecting to a database

This section describes how to connect to a database when developing a PHP application in Dreamweaver. It assumes you have one or more MySQL databases and that the MySQL server is started.

To create a database connection to your MySQL database:

  1. Open a PHP page in Dreamweaver, then open the Databases panel (Window > Databases).
  2. Click the Plus (+) button on the panel and select MySQL Connection from the pop-up menu.

    The MySQL Connection dialog box appears.

  3. Complete the dialog box and click OK.

    For more information, see Setting the MySQL Connection dialog box options.

The new connection appears in the Databases panel.

Getting Started with Dreamweaver
Dreamweaver Basics
Working with Dreamweaver Sites
Laying Out Pages
Adding Content to Pages
Working with Page Code
Preparing to Build Dynamic Sites
Making Pages Dynamic
Developing Applications Rapidly