Creating your database connection in Dreamweaver is the final step in preparing your system for dynamic web development. Once this has been defined, you are ready to start producing your dynamic website. A PHP database connection tells Dreamweaver, that the current site is going to create PHP pages, and refer to a specific database to store or display data.
This tutorial shows you how to set up a PHP database connection from within Dreamweaver that you can then use in your site.
NOTE:WebAssist provides a free eCommerce database that you can use for your website. Learn more and download it here http://www.webassist.com/free-downloads/tutorials-and-training/ecommerce-database/.
The Databases panel allows you to define your database connections for your site. This even gives you the opportunity to preview some of the data in your database once a connection is established.

Once the databases window is accessible, it's time to make a new connection.

NOTE:If you don't remember creating a password, you probably weren't asked to do so when setting up your testing server or database. You can leave this field blank, but should go and specify a password for your database later. For testing servers, your User name is probably 'root' as this is the default "SuperUser" for MySQL databases.

NOTE: You will not be able to use your live database when creating dynamic pages using WebAssist products such as DataAssist or eCart. These products need to be able to see your database and the tables within, in order to create the appropriate references. You will need to use your local testing server's database, and then export and import that database to your live server, when pushing your dynamic pages live.
Dreamweaver creates a Connections folder in your current site. This folder will contain a file that includes the details for accessing your database. If you create additional database connections, a new file will be added to this same folder.
Confirm that this folder exists and contains the new connections file.
Now that your database connection is completely set up, you can now utilize it to create dynamic content for your site. Depending on what you intend to create, you might want to start using one of WebAssist's dynamic Dreamweaver extensions, such as DataAssist, eCart, or SecurityAssist.
With your database connection created, you are now ready to jump right into the Getting Started Guides for any of these products.
If you did not find this helpful or you are stuck on a particular step, click here to let us know what we can do to improve this tutorial.
This form was built using CSS Form Builder.