close ad
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

random MySQL database connection fail...

Thread began 4/01/2014 10:44 am by Nathon Jones Web Design | Last modified 4/02/2014 8:02 am by Nathon Jones Web Design | 1735 views | 5 replies

Nathon Jones Web Design

We've checked with the host they responded...

"With regards to the host for the database, your server is the host so this is either localhost, or the IP address.

Checking this for you, the user has access to the database from the command line and creating a simple test script:


This is the connection script they've used on test.php

// Create connection

// Check connection
if (mysqli_connect_errno())
echo "Failed to connect to MySQL: " . mysqli_connect_error();
echo "Connected";

The difference appears to be in using "localhost" instead of the IP address, but when I try that in Dreamweaver the Define section tests successfully but when I try to open a recordset I get the same error. The website too displays the same error.

<sigh> I could understand if we'd changed something, but we didn't. This was all working fine, which you can confirm too because you've been assisting us with the site.

Why would this just stop?

I would appreciate your advice as I have no technical knowledge of MySQL at all.
I'm also, obviously, still chasing the host but their test connection works so they're pretty much saying that everything is fine.

Is this a Dreamweaver problem then?

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





Ease of use


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