To connect to a database when developing
a PHP application in Dreamweaver, you must
have one or more MySQL databases and the MySQL server must be started.
Open a PHP page in Dreamweaver,
and then open the Databases panel (Window > Databases).
Click the Plus (+) button on the panel, select MySQL
Connection from the menu, and complete the dialog box.
Enter a name for the new connection, without
spaces or special characters.
In the MySQL Server box, enter an IP address or
a server name for the computer hosting MySQL. If MySQL is running
on the same computer as PHP, you can enter localhost.
Enter your MySQL user name and password.
In the Database box, enter the name of the database,
or click Select and select the database from the list of MySQL databases,
and click Test.
Dreamweaver attempts to connect
to the database. If the connection fails, double-check the server
name, user name, and password. If the connection still fails, check
the settings for the testing folder Dreamweaver uses
to process dynamic pages.
Click OK.
Note: 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.