How can I connect to a MySQL database from Dreamweaver?

To connect to a MySQL database from Dreamweaver follow the below steps:

Login to your cPanel account at www.suncoasthosting.com.au/cpanel. Click on 'MySQL Databases' under the 'Databases' menu. Add a new user by entering a username and password if you don't have one you would like to use. Add the user to the database you wish to work with through Dreamweaver.

At the bottom, add the % symbol to the 'Add Host' listing, this is a wildcard and will allow connection from any computer if they have the correct user name and password.

Ensure your site is setup for php/mysql in Dreamweaver, you can use our Dreamweaver Video Tutorials to make sure it is setup correctly. Dreamweaver 2004, Dreamweaver 8 and Dreamweaver MX.

You now need to connect to your account and set up a connection to the 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 test the connection to see if your settings are correct.

  • 2 Kasutajad peavad seda kasulikuks
Kas see vastus oli kasulik?

Seotud artiklid

Do I use localhost or remotemysqlhost for my mysql connection?

You can view whether your account is using localhost or remotemysql host in your cPanel account....

How do I create a MySQL backup?

There are two ways to back up your MySQL databases. You can use the backup utility in your cPanel...

I would like to dump the Table Structure for my MySQL Database, but none of the data.

The command line option from SSH is: mysql -d -p database_name > file.sql. Where...

How do I create a MySQL database?

To create a MySQL database please follow the steps below:- Login to your control panel at...

How do I import a MySQL database?

To import a database follow the below steps:I have a backup of my database that I need to...