Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 13th, 2006, 4:54 PM   #1
mackay6
Newbie
 
Join Date: Jun 2006
Posts: 7
Rep Power: 0 mackay6 is on a distinguished road
Annoying MySQL Connection Problem

Okay, so I have set up PHP along with Apache and now MySQL but when I am trying to go in via MySQLAdmin I get this error message that appears. I am looking for a little advice and help, I've done some research into it but cannot find anything else useful so I'll have a bash here hopefully.

Quote:
#1045 - Access denied for user 'SYSTEM'@'localhost' (using password: NO)
Thanks.

P.S. I am new to the forum, so Hello all.
mackay6 is offline   Reply With Quote
Old Jun 13th, 2006, 5:07 PM   #2
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
do you have a user named SYSTEM? if so, does he/she need a password to login (most likely yes). if the answer is yes to needing a password, you simply need to make sure your MySQLAdmin is sending a password.
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline   Reply With Quote
Old Jun 13th, 2006, 5:16 PM   #3
mackay6
Newbie
 
Join Date: Jun 2006
Posts: 7
Rep Power: 0 mackay6 is on a distinguished road
Nope, I have no user named System. I actually believe that is supposed to be root@localhost. Why it says System, I am not sure. I am using the config authentication system therefore what files do I need to change to get root to be accepted... if any
mackay6 is offline   Reply With Quote
Old Jun 13th, 2006, 5:24 PM   #4
mackay6
Newbie
 
Join Date: Jun 2006
Posts: 7
Rep Power: 0 mackay6 is on a distinguished road
Perhaps I have to change something in config.inc.php?
mackay6 is offline   Reply With Quote
Old Jun 14th, 2006, 9:08 AM   #5
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
yes, probably. this is my config.inc.php

[PHP]
/*
* Generated configuration file
* Generated by: phpMyAdmin 2.8.1 setup script by Michal Ä~LihaÅ~Y <michal@cihar.com>
* Version: $Id: setup.php,v 1.23.2.8.2.2 2006/05/15 07:57:09 nijel Exp $
* Date: Mon, 05 Jun 2006 21:48:14 GMT
*/

/* Servers configuration */
$i = 0;

/* Server localhost (config:root) [1] */
$i++;
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['connect_type'] = 'socket';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'mysql';
$cfg['Servers'][$i]['password'] = 'SomePassword';

/* End of servers configuration */
[/PHP]
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline   Reply With Quote
Old Jun 14th, 2006, 9:20 AM   #6
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'rootsPW';

at the command line type:

mysql -u root -p

then enter root's password

you should have something like: mysql>
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Oct 22nd, 2006, 2:15 AM   #7
jsilver608
Newbie
 
Join Date: Oct 2006
Posts: 20
Rep Power: 0 jsilver608 is on a distinguished road
it looks like the underlying functions that actually connect to your mysql database are not seeing the username and password from your config file. You might want to check path info.
__________________
High Performance PHP
http://www.whenpenguinsattack.com
jsilver608 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:25 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC