Adding Connections
The Dynamic Connections interface is divided into two tabs. The first tab is similar to the default Dreamweaver Database Connection interface. The second tab allows you to configure additional database connections.
Configuring your Primary Connection
The primary connection is the default connection that will be used for any domain that is configured under Additional Connections.
- Connection name: Enter a name for this connection. Your connection should not have spaces or any special characters.
- Charset: Select the character encoding preferred for this connection.
If you do not know what this is, leave default selected. - MySQL server: Enter an IP address or the server name for the computer hosting MySQL.
If you are configuring the database connection for you local machine, you can enter localhost. - User name: Enter your MySQL user name.
- Password: Enter your MySQL password
- Database: Enter the name of the database you wish to use, or click Select to choose the database from a list of databases available on the specified server.
Once all this information is entered, click Test to confirm that it was entered correctly.
Configuring Additional Connections
You can add as many additional connections as you like. Each connection can be associated to any number of domains. When the database connection file is run on a specified domain, it will use the connection that you configured.
- Click Add to enter an additional connection.
- In the fields below the tree, enter the details for the connection.
Use the lightning bolt if you wish to specify any of these values dynamically. - For Domains: Enter all the domains, separated by a comma that you wish this connection to be used for.
- Click Add to create another connection.
- To remove a connection, select the connection from the tree and click the Delete icon.
- Use the up and down arrows to raise or lower the selected connections priority.
- Once you have configured all your connections, click Finish to have the connections file created.
Dynamic Connections create a connections file in your Connections folder the same way it is done by Dreamweaver's connection interface. The Database Connection file will contain all the connections you specified with conditional behavior applied to determine which connection should be used when.