GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 01-May-2003, 19:22
austinstace austinstace is offline
New Member
 
Join Date: May 2003
Posts: 1
austinstace is an unknown quantity at this point

phpMyAdmin error


I have an Apache server set up on my local machine and have been using phpMyAdmin to manage MySQL. I was installing a new program today and added a password to my root access. Now I get the error:

MySQL said:


Access denied for user: 'root@localhost' (Using password: NO)

Running a server on my local machine is new to me and I do not know how to get a login screen when using phpMyAdmin so that I can enter a password. My other option would be to clear the password that I set but I don't know how to do this either.

I would appreciate any help - it all goes into the learning curve.

Thanks in advance
  #2  
Old 01-May-2003, 22:22
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
Hello austinstace,

Perhaps this is obvious but you didn't mention that you already checked it, in your post.

Did you update the config.inc.php file inside the phpmyadmin folder?

If not, open it up and look for where you can add the password in it.
  #3  
Old 28-May-2003, 11:48
ruzel ruzel is offline
New Member
 
Join Date: May 2003
Location: New York
Posts: 2
ruzel is an unknown quantity at this point
Angry

PHPmyadmin newbie problems


I've installed PHPMyAdmin on my Linux box and I have a different problem. Mysqld seesm to be running, but when I open the PHPMyAdmin page, I get this:

"Access denied for user: 'root@localhost' (Using password: YES)"

The password for root isn't wrong, but do I even want mysql accessing things as root? I noticed that during the install procedure there was an mysql account created. I don't see it in the /home directory though.

Thanks for any help!
  #4  
Old 28-May-2003, 12:27
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
Hello ruzel,

Access denied for user root@

That nearly always means you're trying to access a database that you do not have permissions to access... or not? It's really odd how you cannot seem to access the databases as 'root' though...

I remember once when I accidentally dropped the 'root' permissions in the `mysql` database; boy, that was a mess! I had to delete the mysql files, re-install MySQL and restore all the databases off a recent backup.

I really don't know about MySQL on Linux, I am still struggling with Linux at the moment so unless someone who uses Linux extensively, reads this and replies, I am also interested to know how you will eventually solve this.
  #5  
Old 28-May-2003, 14:08
ruzel ruzel is offline
New Member
 
Join Date: May 2003
Location: New York
Posts: 2
ruzel is an unknown quantity at this point

Access denied for user root


It turned out that I was setting the password in the config file for PHPMyAdmin but had neglected to restart the mysqld server (It's always something like that with me).

For those that want to know, you can restart mysqld (on Linux RedHat 7) with

shell>service mysqld restart

That seemed to solve the problem.

/r
  #6  
Old 31-Dec-2006, 09:11
sopedro sopedro is offline
New Member
 
Join Date: Dec 2006
Posts: 1
sopedro is on a distinguished road

Re: phpMyAdmin error


Quote:
Originally Posted by austinstace
I have an Apache server set up on my local machine and have been using phpMyAdmin to manage MySQL. I was installing a new program today and added a password to my root access. Now I get the error:

MySQL said:


Access denied for user: 'root@localhost' (Using password: NO)

Running a server on my local machine is new to me and I do not know how to get a login screen when using phpMyAdmin so that I can enter a password. My other option would be to clear the password that I set but I don't know how to do this either.

I would appreciate any help - it all goes into the learning curve.

Thanks in advance
Hi
I've solved this problem, it's simple.
For some reason our phpmyadmin don't read the config.inc file, put your details in libraries/config.default file instead.

I don't know why but sometimes the phpmyadmin don't read the config file, so rename it to config.sample and use the other config file instead.

It works for me
  #7  
Old 07-Aug-2007, 14:35
sumi007 sumi007 is offline
New Member
 
Join Date: Aug 2007
Posts: 1
sumi007 is on a distinguished road

Re: phpMyAdmin error


Hi All,

when i go to localhost (phpMyAdmin folder is in htdocs folder in apache 2.2)
i am getting the following error
#1045 - Access denied for user 'root'@'localhost' (using password: NO)
--------------------
config.inc.php
------------------------
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['PmaAbsoluteUri'] = '/localhost/phpMyAdmin/';
//$cfg['Servers'][$i]['host'] = 'MySQL.localhost.com'
$cfg['Servers'][$i]['host'] = 'localhost'
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'mysql';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;

please help
thanks
sumi
  #8  
Old 21-Aug-2007, 07:57
Couling Couling is offline
New Member
 
Join Date: Aug 2007
Posts: 6
Couling is on a distinguished road

Re: phpMyAdmin error


I find the easiest way to do this (not to mention most secure), is to set:
$cfg['Servers'][$i]['auth_type'] = 'http';

in config.inc.php

that way you dont have to write your password into the settings files and you just get handed a uername and password dialog when you want to use phpMyAdmin.

This means you can use root or any other user you know the password to at your leasure.

Hope this helps
  #9  
Old 24-Aug-2007, 21:42
TurboPT's Avatar
TurboPT TurboPT is offline
Senior Member
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 1,140
TurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the rough

Re: phpMyAdmin error


Quote:
Originally Posted by Couling
I find the easiest way to do this (not to mention most secure)...
More flexible as far as multiple users, yes...
However, caution that HTTP, alone, with PMA is NOT the "most secure" without HTTPS...note this from the PMA documentation: (yes, they DO claim "more secure" -- because it removes the need to store login information [as Couling mentioned] in the config files, but...)
Quote:
HTTP and cookie authentication modes are more secure: the MySQL login information does not need to be set in the phpMyAdmin configuration file (except possibly for the controluser).
However, keep in mind that the password travels in plain text, unless you are using the HTTPS protocol.
--just my $0.02.
__________________
Use the force...read the source!!
WYCIWYG -- what you code is what you get!
 
 

Recent GIDBlogAccepted for Ph.D. program by crystalattice

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 not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in ukrspp21 MySQL / PHP Forum 33 02-Sep-2009 20:42
Including Maps and strings?? maddie C++ Forum 17 05-Jul-2004 07:25
error during program rjd72285 C++ Forum 0 11-Nov-2003 19:49
[script] E-mail webmaster error page BobbyDouglas PHP Code Library 0 19-Aug-2003 21:10
CD burner, focus or tracking error ShingoDrrazz Computer Hardware Forum 1 09-Aug-2003 17:26

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 05:00.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.