Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old July 31st, 2003, 12:28 AM
myraleen myraleen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Ottawa, Ontario, Canada
Posts: 123 myraleen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to myraleen Send a message via AIM to myraleen
HELP!!! Please it's urgent. connection problems

Access denied for user: 'httpd@localhost' (Using password: NO)

This is the error I am getting!!!

I have leafed through other posts, but can not seem to find the exact answer I am looking for.

My database and mysql server is on my web sites host, I created a user that had all access rights, though I can't seem to create a simple admin user because it says they are already created. However it doesn't show them in my server's database information.


I know it is partway connecting, because if i change the host it gives me the error i put in with the php coding.

This is my code:
[highlight=php]
//url of sys
$system_url="http://thetippedcanoe.com";
//db parameters
$host = “64.21.163.2”;
$user = "root";
$password = "";
$database = “thetippedcanoe”;

//session timeout
$profile_timeout = 480;

$connection = mysql_connect ($host,$user,$password) or die("You can not connect" . mysql_error());
[highlight=php]

Reply With Quote
  #2  
Old July 31st, 2003, 12:25 PM
mugane mugane is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Charlottesville, VA USA
Posts: 425 mugane User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to mugane Send a message via Yahoo to mugane
RE: HELP!!! Please it's urgent. connection problems

Your password is set to null. You need to specify the password. Contact your host if you don't know it and cannot find it yourself, they should be able to tell you how to get it or what it is.

I would assume that if they did their job you cannot connect as a root user from a remote host for security reasons. So you may try and either use a username that is not a root user but has the permissions you desire, or set up a new user with the appropriate permissions and use that.

Reply With Quote
  #3  
Old July 31st, 2003, 12:31 PM
myraleen myraleen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Ottawa, Ontario, Canada
Posts: 123 myraleen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to myraleen Send a message via AIM to myraleen
RE: HELP!!! Please it's urgent. connection problems

Yes I did contact them, they are slow in responding.

I also have already set up a user and password with dba granted access rights.

Unfortunately even when I try using those in my config file they don't work either and i get the same message.
I'm not sure why it says httpd instead of my username in the error message though. I think that may have something to do with it.

ugh.

Reply With Quote
  #4  
Old July 31st, 2003, 12:41 PM
mugane mugane is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Charlottesville, VA USA
Posts: 425 mugane User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to mugane Send a message via Yahoo to mugane
RE: HELP!!! Please it's urgent. connection problems

on which server are your php files located?

If they are on the same machine as the database, try using $host = "localhost" - but you have to use a password, unless you set up a user that does not need one (not recommended). Try the user you created.

Who is your web host?

Reply With Quote
  #5  
Old July 31st, 2003, 09:42 PM
myraleen myraleen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Ottawa, Ontario, Canada
Posts: 123 myraleen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to myraleen Send a message via AIM to myraleen
RE: HELP!!! Please it's urgent. connection problems

Tried that, localhost does not work either.



my hosting service is pwebtech.com

Feel free to contact me email or messanger to help. yup yup

myraleen@hotmail.com

Reply With Quote
  #6  
Old July 31st, 2003, 10:33 PM
myraleen myraleen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Ottawa, Ontario, Canada
Posts: 123 myraleen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to myraleen Send a message via AIM to myraleen
RE: HELP!!! Please it's urgent. connection problems

ok so they got back to me and i am STILL stuck.

This is what they say:
For some reason, whatever user runs the 'theTippedCanoe.php' file, is what that file takes as the user to pass onto the config.inc script to login to mysql. I know this because when I tried running the .php script from the command line as root it gave the same error, but it said user 'root@localhost' instead of http.

Maybe you will be able to look at your code, and see why it is doing this. I hope this helps.

Oh, and the I tried connecting to the database as akasha, and it works fine, just to let you know.

The only other thing I can suggest for now, is to try connecting to the database without using variables in the script, just force the actual info, and see if it connects. Hope it works.

Do you know what that might mean???

Reply With Quote
  #7  
Old August 1st, 2003, 01:16 PM
mugane mugane is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Charlottesville, VA USA
Posts: 425 mugane User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to mugane Send a message via Yahoo to mugane
RE: HELP!!! Please it's urgent. connection problems

Why don't you try this code, and see what happens:
php Code:
Original - php Code
  1. <?
  2. // (c) Peter Kionga-Kamau 23-06-2003
  3. // No restrictions have been placed
  4. // on the use of this code.
  5. function DB_CONNECT($dbserver,$dbname,$username,$pass)
  6. { // connect to mysql:
  7. $connection = mysql_connect($dbserver, $username, $pass) or die(mysql_error());
  8. // select database:
  9. mysql_select_db($dbname,$connection) or die(mysql_error());
  10. return $connection;
  11. }
  12.  
  13. function CONNECT()
  14. {// simplifies connecting & selecting database (define server/user/pw once only):
  15. $dbserver = "64.21.163.2";
  16. $username = "enter user name here";
  17. $pass     = "enter password here";
  18. $dbname   = "enter db name here";
  19. return DB_CONNECT($dbserver,$dbname,$username,$pass);
  20. }
  21.  
  22. CONNECT();
  23. $result = mysql_query("SHOW STATUS") or die(mysql_error());
  24. $i=0;
  25.  
  26. while ($row = mysql_fetch_array($result, MYSQL_ASSOC))
  27. {
  28. while ( list ($key, $value) = each ($row))
  29. {
  30. if($i/2 == floor($i/2)) echo "<BR>"; else echo " : ";
  31. echo $row[$key];
  32. $i++;
  33. }
  34. }
  35. ?>
If nothing then IM me.

Peter

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > HELP!!! Please it's urgent. connection problems


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway