954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Can't connect to database for contact page

This issue I am running into occurred once we changed our site over to a dedicated server. We have had continual problems with our contact page, first with the captcha and now we have an error message saying: SQL error: Table 'paysonllc_db1.email' doesn't exist.

Under Manage Sites I can connect to the remote info and testing server no problem. But when I try to set up a connection to the database from within Dreamweaver to change which database the contact form is using, a _mmServerScript error comes up every time.

Error: The files from the _mmServerScripts folder are for the server model PHP-MySQL. You try to connect to the database using a different server model. Please remove this folder outside the Dreamweaver environment on both local and testing machines and try again.

In order to get the contact page working I need to redirect the form to the new Database, but since I keep getting this error, I can't work past it. Has anyone ever encountered this or have any advice?? Thanks.

mgn2683
Junior Poster in Training
63 posts since Dec 2007
Reputation Points: 10
Solved Threads: 0
 

The error is most likely from an invalid query that is using `paysonllc_db1.email` as the table in the SELECT clause, ie., SELECT * FROM paysonllc_db1.email which would throw an error because the FROM statement only takes a table name.

ShawnCplus
Code Monkey
Team Colleague
1,583 posts since Apr 2005
Reputation Points: 526
Solved Threads: 268
 

But the problem I am running into is the _mmServerScripts error is prohibiting me from being able to edit the connection to the database. Has anyone ever encountered this or have any advice? I found something on Adobe's site to delete the server scripts on both the local and remote sides, but it did nothing. I need to fix this issue but I can't seem to get past this. Thanks in advance.

mgn2683
Junior Poster in Training
63 posts since Dec 2007
Reputation Points: 10
Solved Threads: 0
 

This is a problem specific to dreamweaver, here are a few things that came up when I did a search on Adobe's site.
http://www.adobe.com/cfusion/search/index.cfm?loc=en_us&restrict=support&term=_mmServerScripts
You may want to start there.

R0bb0b
Posting Shark
998 posts since Jun 2008
Reputation Points: 358
Solved Threads: 89
 

Solution is to put on your testing server url prefix the whole web site name http://www.sample.com/
not http://sample.com/

This could happen if you mess around with the .htaccess.

josuemunoz
Newbie Poster
1 post since Jun 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You