Go Back   CodingForums.com > :: Server side development > MySQL

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-25-2013, 07:01 PM   PM User | #1
ckdoublenecks
New Coder

 
Join Date: Jun 2010
Posts: 60
Thanks: 4
Thanked 0 Times in 0 Posts
ckdoublenecks is an unknown quantity at this point
permissions

While setting up file sharing I guess I failed to check permission for one file. I'm at a loss as to how to change this. Any help ?

Code:
Unable to connect to database: Access denied for user 'root'@'localhost' (using password: YES)
ckdoublenecks is offline   Reply With Quote
Old 01-25-2013, 09:22 PM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,650
Thanks: 4
Thanked 2,451 Times in 2,420 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
That's not an Apache or filesystem issue. That's a login failure to the dbms.
Double check the username and password for the root account for the (presumably) mysql login attempt. It is also possible (although IMO unlikely) that the root account is denied locally and granted remotely (just the logic of such makes absolutely no sense).
If you've forgotten your root password (try without one as well since the default is no password), follow the documentation here for resetting the root password (assuming you are using mysql): http://dev.mysql.com/doc/refman/5.0/...rmissions.html

Edit:
BTW, I should mention: never use root as your user account. Use a user account created for JUST the database in question.
__________________
As of PHP 5.5, the MySQL library has been officially deprecated. It is recommended to move to either MySQLi or PDO libraries for your mysql connectivity. See here for help choosing which interface you prefer: http://php.net/manual/en/mysqlinfo.api.choosing.php
Fou-Lu is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:51 AM.


Advertisement
Log in to turn off these ads.