Tuesday, October 16, 2012

Configure Database in Dreamweaver, PHP MySQL

Configure Database in Dreamweaver, PHP MySQL

Configure Database in Dreamweaver, PHP MySQL

how to add dynamic data to a PHP-enabled web site in Dreamweaver .Learn how to set up a connection to a MySQL web server in Dreamweaver so that you can use it in your PHP ...The first step to editing dynamic sites with Dreamweaver is to set up your dynamic site in Dreamweaver. For this, you'll need a testing server that runs PHP and MySQL as well as a publishing server that also runs PHP and MySQL. This tutorial explains how to set up Dreamweaver so that you can test your files on your local hard drive, and then when they are perfect, upload them to your live website.Log into your bluehost account and click on "MySQL Databases" then under "Users" create a new user and password if you don't already have one you want to use.Then add that user to the database you wish to work with through Dreamweaver.
Now open Dreamweaver, create a new blank PHP page, then at the top bar click on "Site" then "New". Leave the "Local Info" as it is, but click on "Remote Info" instead and change the access type to FTP.

Here are the settings you'll need to fill out:

FTP host = your domain name or IP (the IP can be found in the Control Panel)
Host Directory = public_html (or public_html/addondomain)
login = control panel (cpanel) username
password = control panel (cpanel) password
Next click on 'Testing Server' then change the 'Server Model' to 'PHP/MySQL' and access to FTP. Use the same account information as above, and if Dreamweaver asks for a 'Remote Info Page', simply use http://www.yourdomain.com

Now to connect to your account and set up a connection to a database.

Up at the top menu bar in Dreamweaver click on 'Window' then 'Databases'. This will bring up a menu on the side bar, if it is not already up, where you can click on the + button and set up a 'MySQL Connection'. Label it what you would like in the 'Connection Name' and use these settings:

MySQL Server = localhost
Username = The control panel username then '_' and MySQL database username
Example: cpanel_mysqlname
Password = Password to the MySQL database username
Database = Click 'Select' and choose your database
Then you can test the connection to see if your settings are correct.

 

buy adobe dreamweaver cs6 mac pc only at $ 50

 Want buy adobe photoshop cs6 at cheap price? you can go to my webshop to buy it ,cheap dreamweaver cs6  full version .

  It is not a OEM or tryout version.

  We offer worldwide shippment .

  You can pay by paypal.

you can buy it at my website shop at only $50 low price cheap dreamweaver cs6 pc mac version and more other usefull design software tools.

 cheap adobe dreamweaver cs6 $50 

No comments:

Post a Comment