Jump to content

error 1044


massimo

Recommended Posts

Hi,

what could be causing the following server reply:

Error1044 : Access denied for user: \'name@IPaddress\' to database \'dbname\' ?

I have checked the spelling of user, pswd, localhost and dbname a million times; they are correct in the include.php file. The localhost and dbname are provided by the web host and I am using their MySQL manager. I thought something might be fouled up with the DB but they guaranteed that everything is fine and the problem is in the script. The script is part of a shopping cart system.

The script in question is at: www.mastix.ws/t/cartScript.html

(the initial <?php and final ?> are omitted so you can see the code)

 

Any help will be greatly appreciated.

Link to comment
Share on other sites

so i guess it would really hurt your webhost to take the same peek at the link u so graciously provided :lol:

 

anyway i\'m thinking the prob lies somewhere here..

[php:1:61351d7726]

if (!($connection = @ mysql_connect($dbhost,

$dbusername,

$dbpasswd)))

showerror();

[/php:1:61351d7726]

..and guessing that showerror() is a mysql_error() return?

..andyou just did the following in include.php?

[php:1:61351d7726]

$dbhost = \'host\';

$dbusername = \'name\';

$dbpasswd = \'passwd\';

[/php:1:61351d7726]

..if so i can\'t see why you get access denied unless it is a username/pass error.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.