- Knowledgebase Home
- » Browse by Service
- » (dv) Dedicated-Virtual
- » (dv) 3.5
- » Web Technologies
- » Databases
Dreamweaver MX - PHP/MySQL Configuration
NOTE:
This article will help you configure a PHP/MySQL testing server in Macromedia Dreamweaver. Although this is Third-party software, and we do not support Third-party software configurations, we have created this article as a courtesy to our customers.
DETAILS:
- First, create a "Site" to hold your files. When creating the site, be sure to specify that you want to use the "PHP MySQL" server technology.
- Read the "Setting up a Dreamweaver site" section of the Dreamweaver Help File for more details about defining a site, or see our other Dreaweaver KnowledgeBase articles.
- Make sure you set up a "Testing Server" using the same information as the remote server. The Server Model should be set to "PHP MySQL" and the Access menu should be set to "FTP" (see the articles above if you need help setting this part up).
- Once your site is set up, create a new PHP file in the site by selecting "Site" in the Site tab of the Files panel and pressing Ctrl+Shift+N.
- Rename your new file from untitled.php to something meaningful. Double-click the filename to open your new file. This file MUST be php, or you will not be able to access the database.
- Now it's time to set up a database connection. Click the "Databases" tab of the Application panel and then the button with the "+" on it.
- In the MySQL Connection dialog box that appears: Fill in the text boxes with the appropriate information. Your database server's host name (localhost) is entered in the "MySQL Server" box. The user name and password (Note that the username should be the same as your admin/FTP login and the MySQL password can be changed at any time from the WebControl panel, even without the old password) is entered in the User Name and Password boxes. The database name (yourdomain_tld) is entered in the "Database" box.
-
- For (dv) and (ss) use localhost
- For (gs) use internal-db.s#####.gridserver.com
See this KnowledgeBase article for (gs) connection info:
(gs) Why can't I connect to my MySQL database from PHP?
WARNING:
There is a known bug in Dreamweaver that does not allow for automatic table name discovery in databases with hyphens in the name. Since all of our (ss) Shared-Server databases include a hyphen in the name this affects all customers using Dreamweaver. The workaround is to manually specify table names in queries. Given a table name, Dreamweaver is able to query a database with a hyphen in it's name without a problem.
Revisions:
07-28-2009: Updated broken link
11-25-2008: Updated broken link
Fields marked with an asterisk(*) are required. Comment on this article