Database connection failed: Access denied - Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Webmaster Tech > Databases - MySQL, SQL, Oracle, Access and others

WebmasterForums.com is the premier Forum on the internet. Registered Users do not see the above ads.
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 10-19-2011, 11:14 AM   #1 (permalink)
Regular User
 
digitaldrug's Avatar
 
Join Date: Aug 2011
Location: Venice
Posts: 21
Default Database connection failed: Access denied

Hi Guys,

I tried to have a look around here but it seems anybody has got this problem.

I would really appreciate your help to fix this problem.

I have a wp site with some credential (DB, USERNAME, PWS) and it work fine.

However if I try to create a connection to the db myself, using the same credential the connection doesn't work and i get this error:

Database connection failed: Access denied for user 'my_user'@'localhost' (using password: YES)

I have also tried to create a new db and a new user but it seems have the same problems.

From my php panel I have associated te user to the db grant all privileges.

Any help?

Thanks a lot
digitaldrug is offline   Reply With Quote
Sponsored Links
Advertisement
 
Old 11-09-2011, 11:21 PM   #2 (permalink)
Junior Member
 
Join Date: Nov 2011
Posts: 5
Default Re: Database connection failed: Access denied

Quote:
Originally Posted by digitaldrug View Post
Hi Guys,

I tried to have a look around here but it seems anybody has got this problem.

I would really appreciate your help to fix this problem.

I have a wp site with some credential (DB, USERNAME, PWS) and it work fine.

However if I try to create a connection to the db myself, using the same credential the connection doesn't work and i get this error:

Database connection failed: Access denied for user 'my_user'@'localhost' (using password: YES)

I have also tried to create a new db and a new user but it seems have the same problems.

From my php panel I have associated te user to the db grant all privileges.

Any help?

Thanks a lot
1. You should open database once more while closing all the windows of your system and login username and password .
2. Go to tools and cross check if the database is in connected mode or disconnected mode.
3. One more think use windows authentication true for SQL server .
jaffaryvincent is offline   Reply With Quote
Old 11-26-2011, 09:13 AM   #3 (permalink)
Regular User
 
digitaldrug's Avatar
 
Join Date: Aug 2011
Location: Venice
Posts: 21
Default Re: Database connection failed: Access denied

hi no it was another problem on a config file
Thanks for helping
digitaldrug is offline   Reply With Quote
Old 12-12-2011, 09:54 AM   #4 (permalink)
Regular User
 
Join Date: Dec 2011
Posts: 13
Default Re: Database connection failed: Access denied

Interesting info...
123samuel is offline   Reply With Quote
Old 02-25-2012, 08:50 AM   #5 (permalink)
Regular User
 
Join Date: Jul 2005
Posts: 47
Default Re: Database connection failed: Access denied

You did not post your connection script for us to review.
Perhaps this script can help you test your connection.
sandman is offline   Reply With Quote
Old 06-18-2012, 04:19 AM   #6 (permalink)
Junior Member
 
Join Date: Jun 2012
Posts: 8
Default Re: Database connection failed: Access denied

If You can't create databases through phpmyadmin. You have to use one of the two options immediately to the left of that option in cPanel to create the database and user/password.

Last edited by harrietadamz; 06-18-2012 at 06:48 AM.
harrietadamz is offline   Reply With Quote
Old 06-18-2012, 06:47 AM   #7 (permalink)
Junior Member
 
Join Date: Jun 2012
Posts: 8
Default Re: Database connection failed: Access denied

thank u for sharing ur link
harrietadamz is offline   Reply With Quote
Old 07-08-2012, 11:50 PM   #8 (permalink)
Regular User
 
Join Date: Mar 2012
Posts: 19
Default Re: Database connection failed: Access denied

You also must add the user to the database in order for this to work.
samirj09 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not 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



» Advertisement

» Advertisement

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare

» Advertisement

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 12:27 PM.


Powered by vBulletin® Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
Webmaster Forums
Web Hosting | Chicago Web Hosting | Web Hosting