massimo Posted July 5, 2003 Share Posted July 5, 2003 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 https://forums.phpfreaks.com/topic/673-error-1044/ Share on other sites More sharing options...
holiks Posted July 5, 2003 Share Posted July 5, 2003 so i guess it would really hurt your webhost to take the same peek at the link u so graciously provided 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 https://forums.phpfreaks.com/topic/673-error-1044/#findComment-2215 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.