icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » Access Denied

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old November 12th, 2007, 3:14 PM   #1 (permalink)
Registered User
Seasoned Poster
 
Joined in Jun 2005
99 posts
Gave thanks: 0
Thanked 0 times
Access Denied

Hi

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC''localhost' (using password: NO)

is ODBC the Root user in localhost ?
skyhigh007 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 13th, 2007, 1:46 AM   #2 (permalink)
Registered User
Seasoned Poster
 
Joined in Jun 2005
99 posts
Gave thanks: 0
Thanked 0 times
Access denied for user 'ahzhou''localhost' (using password: NO) ? How can i change to using password yes ?
skyhigh007 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 13th, 2007, 1:49 AM   #3 (permalink)
URB4N 5K1LLZ
Super #1
 
Roxy's Avatar
 
Joined in Sep 2005
Lives in Orlando, FL
Hosted on SH63
2,660 posts
Gave thanks: 81
Thanked 128 times
Did you create a database username with ODBC? localhost is your "root".
__________________
Roxanne


Urban Roxy -Personal Blog
SH63 - the best darn shared server!
Roxy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 14th, 2007, 1:53 AM   #4 (permalink)
Registered User
Seasoned Poster
 
Joined in Jun 2005
99 posts
Gave thanks: 0
Thanked 0 times
I didn't create ODBC as a username.
skyhigh007 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 14th, 2007, 2:04 AM   #5 (permalink)
wgm
Registered User
Super #1
 
Joined in Mar 2005
Lives in Washougal, WA
1,306 posts
Gave thanks: 23
Thanked 39 times
Database isn't setup properly.

Is this what you did...

1. Create database (name of database)

2. Create user (name of database above and password, same password that was given in the welcome email)

3. Add user to database
wgm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 14th, 2007, 2:47 PM   #6 (permalink)
Registered User
Seasoned Poster
 
Joined in Jun 2005
99 posts
Gave thanks: 0
Thanked 0 times
1. I created a database. Ex: Shoe
2. User: A user name with password. Ex: user= person, Password= cart
3. Added the user to the database
skyhigh007 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 14th, 2007, 5:11 PM   #7 (permalink)
URB4N 5K1LLZ
Super #1
 
Roxy's Avatar
 
Joined in Sep 2005
Lives in Orlando, FL
Hosted on SH63
2,660 posts
Gave thanks: 81
Thanked 128 times
Okay, I'm not sure if this works for all users under surpass, but when I create a database I have to use my login as part of my database name and user name. Here is what it would look like if I used what info you gave...

Login is: kentel
Host: localhost
Database name: kentel_shoe
DB Username: kentel_person
Password: cart

Got it? This is the information that you would write out in whatever script your trying to work with. BTW: Kentel isn't my real login name. =)
__________________
Roxanne


Urban Roxy -Personal Blog
SH63 - the best darn shared server!
Roxy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 15th, 2007, 4:43 PM   #8 (permalink)
Registered User
Seasoned Poster
 
Joined in Jun 2005
99 posts
Gave thanks: 0
Thanked 0 times
If i just created a user and a database, how would I know if the user i just created has same privileges as the root user ?
skyhigh007 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 15th, 2007, 4:46 PM   #9 (permalink)
Registered User
Seasoned Poster
 
Joined in Jun 2005
99 posts
Gave thanks: 0
Thanked 0 times
For host name: should i type in "localhost or the IP/Web address of your server?
skyhigh007 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On