close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Fatal error: Access denied

Thread began 5/06/2011 12:21 pm by A Sound Design | Last modified 5/06/2011 1:39 pm by Jason Byrnes | 4082 views | 3 replies |

A Sound Design

Fatal error: Access denied

I have configured this for my local PHP testing server and for a remote connection but get the following error:

Warning: mysql_pconnect() [function.mysql-pconnect]: Access denied for user 'root'@'localhost' (using password: NO) in /***/***/***/somedomainname.co.uk/subdomains/sitetesting/httpdocs/Connections/connDB.php on line 25

Fatal error: Access denied for user 'root'@'localhost' (using password: NO) in /***/***/***/somedomainname.co.uk/subdomains/sitetesting/httpdocs/Connections/connDB.php on line 25

Details have been altered for security.

In my connDB.php I have:

<?php
# FileName="WADYN_CONN.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_connDB = "localhost";
$database_connDB = "vcb";
$username_connDB = "root";
$password_connDB = "";
@session_start();
$foundConnection = false;
if ($foundConnection == false) {
$domains = explode(",","somedomainname.co.uk/");
for ($domindex = 0; $domindex<sizeof($domains) && !$foundConnection; $domindex++) {
$domainCheck = trim($domains[$domindex]);
if (strpos(strtolower($_SERVER["SERVER_NAME"]),strtolower($domainCheck)) !== false && ($domainCheck == "" || strpos(strtolower($_SERVER["SERVER_NAME"]),strtolower($domainCheck)) == strlen($_SERVER["SERVER_NAME"])-strlen($domainCheck))) {
$hostname_connDB = "localhost";
$database_connDB = "testing";
$username_connDB = "testing";
$password_connDB = "*****";
$foundConnection = true;
}
}
}

$connDB = mysql_pconnect($hostname_connDB, $username_connDB, $password_connDB) or trigger_error(mysql_error(),E_USER_ERROR);

?>

Can someone please see what is up with this. seems to me like it is not recognising the additional connection as it is still trying to connect using the local testing server db name, username and password.

Sign in to reply to this post

Jason ByrnesWebAssist

The error is saying that username password combination is not correct.

From the error, it is saying that the root user is not configured with a blank password on your local server.

You will need to enter the correct password for the root user

Sign in to reply to this post

A Sound Design

I went back and re-entered the details and now it works.

I have to say that this extension is what I have been looking for for a long time. It was so fiddly having 2 separate db connection files, so this works a treat. Thank you so much for developing such a simple extension.

Sign in to reply to this post

Jason ByrnesWebAssist

Glad to hear you have it working.

Sign in to reply to this post

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