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

random MySQL database connection fail...

Thread began 4/01/2014 1:44 pm by Nathon Jones Web Design | Last modified 4/02/2014 11:02 am by Nathon Jones Web Design | 713 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, 233382.vps-10.com 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:
http://www.ledwarehouseuk.com/test.php

Works!"

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

<?php
// Create connection
$con=mysqli_connect("localhost","SAMEUSERNAMEASABOVE","SAMEPASSWORDASABOVE","SAMEDATABASEASABOVE");

// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
else
{
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

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