Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-25-2010, 07:01 AM   #1
RayVega
Confirmed User
 
RayVega's Avatar
 
Industry Role:
Join Date: Jul 2004
Location: New York ICQ#348007554
Posts: 4,212
MySql Driving me nuts, any experts here?

Have a dedicated server with Godaddy running linux and apache with mysql. I'm trying to write a simple database app in PHP and consistently get:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'blahblah'@'localhost' (using password: YES) in /home/public_html/global/database.php on line 85


I've tried everything. Double checked everything, same response. I am positive the user is permissioned, it's my root user [Blocked here]. I've also created users specifically for this database and in all cases I get this message. it is making me CRAZY!

Anyone have suggestions, c'mon time to flex your programming muscle. Any help would be really appreciated.
__________________
Ray "The Don" Vega

Managing Director
Private Equity Fund

[email protected]
RayVega is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-25-2010, 07:04 AM   #2
BittieBucks Eric
Confirmed User
 
Industry Role:
Join Date: Aug 2010
Posts: 457
Quote:
Originally Posted by RayVega View Post
Have a dedicated server with Godaddy running linux and apache with mysql. I'm trying to write a simple database app in PHP and consistently get:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'blahblah'@'localhost' (using password: YES) in /home/public_html/global/database.php on line 85


I've tried everything. Double checked everything, same response. I am positive the user is permissioned, it's my root user [Blocked here]. I've also created users specifically for this database and in all cases I get this message. it is making me CRAZY!

Anyone have suggestions, c'mon time to flex your programming muscle. Any help would be really appreciated.

1. you have the permissions fucked up even though you are positive they are correct

2. you have the wrong password

3. you are using the wrong host. localhost might not be the correct host to use(can also be a permission problem)
__________________

Bittie Bucks - Upto 70% Revshare - CCBill Cascading Program - 10% Webmaster Referral
[email protected] - ICQ - 594415957


Need Content TRASHY CONTENT
BittieBucks Eric is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-25-2010, 07:08 AM   #3
UniqueD
Confirmed User
 
UniqueD's Avatar
 
Industry Role:
Join Date: Aug 2004
Location: Barcelona
Posts: 1,022
I think localhost is default on godaddy db's, id say its something else, if you are absolutely positive its not the user data, then maybe a fuck up on their end.
UniqueD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-25-2010, 07:15 AM   #4
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
I refuse to answer anything related to godaddy.
Klen is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-25-2010, 07:16 AM   #5
redwhiteandblue
Bollocks
 
redwhiteandblue's Avatar
 
Industry Role:
Join Date: Jun 2007
Location: Bollocks
Posts: 2,793
I vaguely recall MySQL giving the "access denied" error when you use the wrong database name or something, so check that the database is actually called what you think it is.
redwhiteandblue is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-25-2010, 07:18 AM   #6
HomerSimpson
Too lazy to set a custom title
 
HomerSimpson's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Springfield
Posts: 13,826
first, run away from godaddy

then check again if the user you have created has rights to read/write/modify the database (that's the most common problem)
__________________
Make a bank with Chaturbate - the best selling webcam program
Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!

PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:
HomerSimpson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-25-2010, 07:19 AM   #7
CyberHustler
So Fucking Banned
 
Industry Role:
Join Date: Feb 2006
Posts: 26,062
I'd switch hosts... Move to amerinoc (see sig). You wouldn't need to come to GFY for help with them.
CyberHustler is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-25-2010, 07:21 AM   #8
BittieBucks Eric
Confirmed User
 
Industry Role:
Join Date: Aug 2010
Posts: 457
Quote:
Originally Posted by redwhiteandblue View Post
I vaguely recall MySQL giving the "access denied" error when you use the wrong database name or something, so check that the database is actually called what you think it is.
Indeed, that's another option.
__________________

Bittie Bucks - Upto 70% Revshare - CCBill Cascading Program - 10% Webmaster Referral
[email protected] - ICQ - 594415957


Need Content TRASHY CONTENT
BittieBucks Eric is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-25-2010, 07:23 AM   #9
stocktrader23
Let's do some business.
 
stocktrader23's Avatar
 
Industry Role:
Join Date: Jan 2003
Location: The dirty south.
Posts: 18,781
Haven't seen GoDaddy hosting in ages. In some control panels you can name a database xxx but the name they set it up under is prefix_xxx . If you don't put that right it will give the error you describe.
__________________


Hands Free Adult - Join Once, Earn For Life

"I try to make a habit of bouncing my eyes up to the face of a beautiful woman, and often repeat “not mine” in my head or even verbally. She’s not mine. God has her set aside. She’s not mine. She’s His little girl, and she needs me to fight for her by keeping my eyes where they should be."
stocktrader23 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-25-2010, 07:35 AM   #10
Adraco
Confirmed User
 
Adraco's Avatar
 
Industry Role:
Join Date: May 2009
Location: Onboard an airplane around the globe
Posts: 3,735
Godaddy's databases are named: something.godaddyservername.com
I had a few mainstream sites there a number of years ago, and I vaguely remember them not using 'localhost' but instead all MySQL databases are run vie their own system and name calling.

But if you do not want to trouble yourself with shit like this, get yourself a real host, save some money and get help when needed. Host with the best, host with Amerinoc right here. They will even move your existing site for you, so you can be up and running with them, trouble free in a few hours.
__________________
----------------------------------------------------------------------------------
The truth is not affected by the beliefs, or doubts, of the majority.
Adraco is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-25-2010, 07:50 AM   #11
Dido
Confirmed User
 
Dido's Avatar
 
Industry Role:
Join Date: Sep 2006
Location: Netherlands
Posts: 217
Check the permissions in your mysql database (it's called mysql), check the tables 'user' and 'db'. Make sure you've got everything set correctly, then reload privs with FLUSH PRIVILEGES;
(Note that in the db table, the fields 'host' and 'user' should correspond literally with the fields in the user table.)

That way you should be able to access your database.
__________________
Dido

ADAMO Advertising - Your ULTIMATE traffic partner!

If you need traffic or have traffic, we'd love to help you make the best out of it!

ICQ:24209500 - Skype:diederikvanschaik
Dido is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-25-2010, 08:11 AM   #12
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
Quote:
Originally Posted by BittieBucks Eric View Post
1. you have the permissions fucked up even though you are positive they are correct

2. you have the wrong password

3. you are using the wrong host. localhost might not be the correct host to use(can also be a permission problem)
</thread>

and yea, godaddy is not the best host choice
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-25-2010, 08:14 AM   #13
chronig
Registered User
 
Industry Role:
Join Date: Oct 2009
Posts: 2,653
lol @ dedicated server with godaddy :|
chronig is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-25-2010, 09:44 AM   #14
Davy
Confirmed User
 
Davy's Avatar
 
Industry Role:
Join Date: Apr 2006
Location: Germany
Posts: 4,323
Maybe you cannot use localhost with Godaddy?
Just guessing.
I did not even know they offered dedicated servers. *shuddering*
__________________
---
ICQ 14-76-98 <-- I don't use this at all
Davy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-25-2010, 09:54 AM   #15
directfiesta
Too lazy to set a custom title
 
directfiesta's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: Montreal, Quebec
Posts: 29,617
http://www.thewebhostinghero.com/tut...ddy-mysql.html

With Cpanel, you would be done a while ago
__________________
I know that Asspimple is stoopid ... As he says, it is a FACT !

But I can't figure out how he can breathe or type , at the same time ....
directfiesta is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.