close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Creating a PHP database connection: Dreamweaver error

Thread began 6/23/2010 6:55 pm by designate407706 | Last modified 7/14/2017 2:06 pm by Ray Borduin | 2026 views | 34 replies |

designate407706

Creating a PHP database connection: Dreamweaver error

I'm following the instructions in creating_db_connection.php

See the enclosed images.

I'm trying to set up the db connection in Dreamweaver. When I go to *select* the db, I get an error (see enclosed). I think it is essentially saying that I do not have a testing server running on the server machine.

I have MAMP running (I'm on a Mac; both Apache and MySQL servers seem to be fine) and PHPMyAdmin running in my browser.

What am I doing wrong?

Sign in to reply to this post

Jason ByrnesWebAssist

In your site definition, on the testing server tab, you have entered 127.0.0.1/ as the URL prefix.

try using localhost/ instead

Sign in to reply to this post

913 MediaWorks

MAMP folder settings

just to venture a guess, did you change the default folder path for MAMP?

I had pointed mine into the /usr/... folder (and changed the port #'s to standard) and had the same error. setting the folder path back to the MAMP default solved my problem (left the ports at 80 and 3306, tho).

hope that solves your issue.

- trent

Sign in to reply to this post

designate407706

Originally Said By: robert329616
  just to venture a guess, did you change the default folder path for MAMP?

I had pointed mine into the /usr/... folder (and changed the port #'s to standard) and had the same error. setting the folder path back to the MAMP default solved my problem (left the ports at 80 and 3306, tho).

hope that solves your issue.

- trent  



I don't know how to change the default folder for MAMP, so don't think I did that. I have those ports as you spec too.

Sign in to reply to this post

designate407706

Originally Said By: Jason Byrnes
  In your site definition, on the testing server tab, you have entered 127.0.0.1/ as the URL prefix.

try using localhost/ instead  



I do not have 127.0.0.1/ entered

I do have localhost/ entered.

Sign in to reply to this post

designate407706

localhost selected

Originally Said By: Jason Byrnes
  In your site definition, on the testing server tab, you have entered 127.0.0.1/ as the URL prefix.

try using localhost/ instead  



see screenshot

Sign in to reply to this post

913 MediaWorks

I somewhat mis-spoke. Rather than the default MAMP folder, I meant the 'Document Root' setting in the Apache tab (in the MAMP preferences).

- trent

Sign in to reply to this post

designate407706

mamp apache doc root

Originally Said By: robert329616
  I somewhat mis-spoke. Rather than the default MAMP folder, I meant the 'Document Root' setting in the Apache tab (in the MAMP preferences).

- trent  



Didn't know I could change that either. I'm a newbie, first time doing this.

doc root is /Applications/MAMP/htdocs

Sign in to reply to this post

913 MediaWorks

dreamweaver site definition setup

don't forget your site folder in your path. and the trailing slash in the URL prefix. I included screenshots of my local and testing setup.

- trent

Sign in to reply to this post

designate407706

larger images

i can't read those they are too small. THANKS so much though for helping!!

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...