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 97,948 views bookmark tags: connecting database dream mysql weaver (updated 1065 days ago)


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. (updated 852 days ago)
Knowledgebase Article 26,620 views tags: database mysql scripts

I cannot connect to my database locally or remotely, do I have the correct server, username and password? (updated 1926 days ago)
Knowledgebase Article 120,499 views tags: cannot connect mysql name

I am prompted to set a new MySQL password. What does this mean and how do I change it? (updated 1000 days ago)
Knowledgebase Article 65,271 views tags: connect database mysql password phpmyadmin username

Related Help Content

How do I make my MySQL database compatible with the version you provide? (updated 2057 days ago)
Knowledgebase Article 82,703 views tags: database mysql

This article will explain MySQL database and user creation and deletion, and explain how to assign a user to a database. (updated 85 days ago)
Knowledgebase Article 457,715 views tags: creation database mysql

Users having problems connecting to mysql database using SSH and/or putty/other client. (updated 1756 days ago)
Knowledgebase Article 60,769 views tags: connection ip mysql putty ssh whitelist

This article will explain how to change the password for a database in the event that the original password is lost. (updated 852 days ago)
Knowledgebase Article 28,325 views tags: database mysql password

How do I create a MySQL backup? (updated 392 days ago)
Knowledgebase Article 151,775 views tags: backup database mysql

How do I import a backup of my database (.sql file) using phpMyAdmin? (updated 27 days ago)
Knowledgebase Article 138,720 views tags: database mysql phpmyadmin

What necessitates "Database Repair"? (updated 1034 days ago)
Knowledgebase Article 99,448 views tags: corruption damaged database mysql postgres repair tables

How to Restore your MySQL Database? (updated 1048 days ago)
Knowledgebase Article 153,675 views tags: admin database mysql php phpmyadmin restore