If you are using assistive technology and are unable to read any part of the HostMonster website, or otherwise have difficulties using the HostMonster website, please call 866-573-HOST and our customer service team will assist you.
Skip to main content

HostMonster Web Hosting Help

Connecting to your MySQL DB from Dreamweaver

Problem:

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

Solution:

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

Knowledgebase Article 153,475 views bookmark tags: connecting database dream mysql weaver


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

This article will explain how to connect your scripts to your MySQL databases.
Knowledgebase Article 120,186 views tags: database mysql scripts

I cannot connect to my database locally or remotely, do I have the correct server, username and password?
Knowledgebase Article 209,933 views tags: connect disconnected hostname mysql user

I am prompted to set a new MySQL password. What does this mean and how do I change it?
Knowledgebase Article 123,482 views tags: connect database mysql password phpmyadmin username

Related Help Content

How do I remotely connect using a database management software?
Knowledgebase Article 829,993 views tags: connection database mysqlfront remote

This article will explain MySQL database and user creation and deletion, and explain how to assign a user to a database.
Knowledgebase Article 665,211 views tags: creation database mysql

How do I make my MySQL database compatible with the version you provide?
Knowledgebase Article 125,440 views tags: compatible database mysql

This article will explain how to change the password for a database in the event that the original password is lost.
Knowledgebase Article 127,492 views tags: database mysql password

Connecting and uploading via FTP with Dreamweaver CS5
Knowledgebase Article 344,628 views tags: dreamweaver ftp

How do I import a backup of my database (.sql file) using phpMyAdmin?
Knowledgebase Article 601,401 views tags: database mysql phpmyadmin

How to Restore your MySQL Database?
Knowledgebase Article 212,232 views tags: admin database mysql php phpmyadmin restore

How do I create a MySQL backup?
Knowledgebase Article 239,916 views tags: backup database mysql

This site utilizes JavaScript to function correctly. Looks like it's disabled on your browser. Please enable it for your best experience.

For instructions on enabling JavaScript, click here