Connecting to your MySQL DB from Dream Weaver

Problem:

How can I connect to our MySQL database from Dream Weaver?

Solution:

Log into your Most Host 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.

  • 49 Users Found This Useful
Was this answer helpful?

Related Articles

MySQL Database Creation

Problem: How do I create an empty MySQL Database? Solution: Databases offer a method for...

Remote Database Connection Setup

How do I remotely connect using a database management software? Databases in cPanel can be...

MySQL Import and Export (.sql file) via SSH

Problem: How to import and export a MySQL Database from the command line. Solution: MySQL...

MySQL Import and Export (.sql file) via PhpMyAdmin

Problem: I need to Export or Import a MySQL database Solution: Note: PhpMyAdmin can only...

MySQL and Postgres Database Repair

Problem: What necessitates "Database Repair"? Solution: Due to the huge amount of data stored...