close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

MDB2 Error: connect failed

Thread began 9/15/2011 6:16 am by info383475 | Last modified 10/22/2014 4:53 pm by Jason Byrnes | 11646 views | 32 replies |

info383475

MDB2 Error: connect failed

I have switched my website with all folders and files to a another webhoster. All the new data like mysql password and db name I have changed. All mysql tables of the old account were migrated to the new database. The communication with the new web adress is okay and everything works fine.
But when I try to integrate an image or a file with the html editor by clicking the server button I get this message:
Error
MDB2 Error: connect failed
connect: [Error message: unable to establish a connection] [Native code: 0] ** mysql(mysql)://dbo382676750:xxx@localhost/tmp/mysql5.sock
I have checked the configuration.php of kfm but there are no mistakes. Even I changed localhost to 127.0.0.1 but the error massage is changing to ...@127.0.0.1/... only.

Sign in to reply to this post

Jason ByrnesWebAssist

this error means that the information for connecting to the mysql server in the Connections/<yourConnectionFile>.php file is not correct. It may be the database server name, user name, password or database name that is entered wrong, but something is not right.


double check with the host for the correct information needed to connect to the MySQL Server. My Guess is the MySQL Server Name is not correct, your host will be to tell you what should be used.

Sign in to reply to this post

info383475

I think the values in my Connections/datenbank.php are correct. Every communication of the website with the mysql db is working fine without any message of mistakes.
Could it be a solution if I delete all kfm tables and files of the editor to make a new automatic installation?

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

JohnPicton

I have this problem too.

I have this problem too. The connection file is correct as I have other database content being queried successfully, but clicking the image icon or using the file manager gives me this error message.

Was a solution found?

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

neo314

Originally Said By: "
  I just encountered this problem for the first time. Was any cause determined?  

Solved, but not sure why this occurred. The file webassist/kfm/configuration.php had the wrong name for the connection file. It said localhost.php instead of [my connection name].php and there was no db, username, or password entered below in the KFM configuration nor any adjustment to make the kfm configuration use the values from the connection file. Not sure why, and I could not find any place to adjust these in the HTMLEditor presets.

Sign in to reply to this post

sales394048

Error MDB2 Error: connect failed

I too am getting this error. I have tried the above fix's but still not able to upload images. A 'sister' site to this one has the image upload option working fine?

Sign in to reply to this post

Jason ByrnesWebAssist

what is the error you are getting?

what version of PHP does the site use? the file manager needs to use php 5.3 or greater.

Sign in to reply to this post

sales394048

Error
MDB2 Error: connect failed
connect: [Error message: unable to establish a connection] [Native code: 0] ** mysql(mysql)://(database username):xxx@db2/

The configuration.php has the correct information for the database. The program works correctly on another site using the same program and database, so I don't think there is a php problem.

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