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:
- Open a PHP page in Dreamweaver, then open the Databases panel (Window > Databases).
- Click the Plus (+) button on the panel and select MySQL Connection from the pop-up menu.
The MySQL Connection dialog box appears.
- 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.
If you encounter the error message "Client does not support authentication protocol requested. Consider upgrading MySQL client" when testing a PHP database connection to MySQL 4.1, see Troubleshooting MySQL error messages.