close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Can't connect to database: "An unknown error has occurred"

Thread began 4/24/2011 5:07 pm by jeffsure | Last modified 4/27/2011 8:21 am by Jason Byrnes | 5521 views | 9 replies |

jeffsure

Can't connect to database: "An unknown error has occurred"

I've installed the PowerCMS Builder extension into Dreamweaver CS5 Mac, and when I try to add a content area using it, I get this error (actually, it's "unidentified error") when trying to test my connection. I know all the info is correct (server name, database, username, password). I've uninstalled the extension and files, and reinstalled a couple of times with no change. Is there something I'm missing? Why can't I connect? I'm sure the database is there and set up correctly. I've used PowerCMS "standalone" version a few times now with no trouble, and I've set up my databases the same way. Any clue as to what this "unknown error" might be?

Sign in to reply to this post

Jason ByrnesWebAssist

In the Dreamweaver Site Definitions, How have you configured the testing server?

When testing a database connection, Dreamweaver uses the Sites testing server settings to connect to your testing server.The Unidentified error suggests that the testing Server settings are not correct.

See the "Defining a Dynamic Site in Dreamweaver" tutorial on the learning resources page:

resources.php

Sign in to reply to this post

jeffsure

Global ralik

Hi Jason,

I'm not using a testing server, I'm publishing straight to the web server (Network Solutions is my host). Should I set up the netsol site as my testing server?

Sign in to reply to this post

Jason ByrnesWebAssist

double check with the host that the MySQL server will allow connections from an outside computer.

If the MySQL Server will allow the connection, then you should be able to set ti to act as both remote and testing server.

I find that using the remote server as a testing server can be problematic in Dreamweaver, though.

Even though it can be done, it's not a recommended development set up.

it is a better idea to have a local testing server for development then publish to the remote server.

Sign in to reply to this post

jeffsure

Thanks, Jason. I successfully set up a testing server here on my Mac with MAMP, and it seems to be working well. Now to figure out how to set it up on the remote server. I may be back here with more questions. :)

Sign in to reply to this post

Jason ByrnesWebAssist

on the learning resources page, see the "Managing your live database settings" tutorial for details on setting your site to go live.

Sign in to reply to this post

jeffsure

Thanks. I've successfully set up the database on the remote server, but now all my content is in my local database. Is there an easy way to move the database from my local machine to the remote server so I don't have to recreate all new content regions?

Sign in to reply to this post

Jason ByrnesWebAssist

Using PHPMyAdmin, you can export the data from your local database as an sql file, then import it to the remote database.

Sign in to reply to this post

jeffsure

Thanks, Jason. I stayed up late Googling and figured that out. The *extremely* frustrating part was the discovery that the import doesn't work in Safari (Mac). I must've tried a dozen times, and it timed out every time with an error. This morning I thought I'd try Firefox, because, well, why not. And it imported the file in seconds. All is working great now. Thanks for your help.

Sign in to reply to this post

Jason ByrnesWebAssist

glad to hear you have it sorted.

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...