Koozali.org: home of the SME Server

phpmyadmin -Access denied for user

Offline kruhm

  • *
  • 680
  • +0/-0
phpmyadmin -Access denied for user
« on: July 22, 2005, 04:14:37 PM »
I'm starting to fool around with mysql for the first time. I can access https://www.domainname.com/phpmyadmin/ but I get:

#1045 - Access denied for user: 'root@localhost' (Using password: YES)

sme v6.0.1-01
mysql -v 4.0.22-standard
phpMyAdmin 2.6.0-pl3

Offline kruhm

  • *
  • 680
  • +0/-0
phpmyadmin -Access denied for user
« Reply #1 on: July 23, 2005, 01:18:22 PM »
i did some more searching and found the answer.

you have to take the password for root and put it in to the /opt/administration/phpmyadmin/config.inc.php file. the top section of this file has a spot for password.

you can find the password in the /root/.my.cnf file.

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
phpmyadmin -Access denied for user
« Reply #2 on: July 24, 2005, 05:07:29 AM »
Quote from: "kruhm"
i did some more searching and found the answer.

you have to take the password for root and put it in to the /opt/administration/phpmyadmin/config.inc.php file. the top section of this file has a spot for password.

you can find the password in the /root/.my.cnf file.


You really don't have to do that.  You could create another user that has full rights as well.  Something like:

grant all privileges on *.* to youruser@localhost identified by 'yourpassword' with grant option;

flush privileges;

You may not have to use the grant option, but that's what I use.

Then you put the appropriate entries into the config.inc.php file.

JB
......

Offline kruhm

  • *
  • 680
  • +0/-0
phpmyadmin -Access denied for user
« Reply #3 on: July 24, 2005, 01:01:21 PM »
learn something new everyday.

i wonder if any of this (or the mysql connectivity from another pc) can make it into the FAQ?

Offline Rosey

  • *
  • 10
  • +0/-0
    • http://roseysoft.com
phpmyadmin -Access denied for user
« Reply #4 on: July 29, 2005, 11:25:50 AM »
I have the problem; I have accidentaly changes the root password in phpmyadmin. Now I get error 1845 acess denied for user ...... I have followed the recommendation above, But this did not fix the problem i am still locked out. I can use the admin log in like usaral. :-?

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
phpmyadmin -Access denied for user
« Reply #5 on: July 29, 2005, 02:07:29 PM »
Quote from: "Rosey"
I have the problem; I have accidentaly changes the root password in phpmyadmin. Now I get error 1845 acess denied for user ...... I have followed the recommendation above, But this did not fix the problem i am still locked out. I can use the admin log in like usaral. :-?


What did you do?  Did you create a new user via mysql?  If so, did you change your entries in config.inc.php?

JB
......

Offline Rosey

  • *
  • 10
  • +0/-0
    • http://roseysoft.com
phpmyadmin -Access denied for user
« Reply #6 on: July 29, 2005, 03:56:05 PM »
All I did is change password for root

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
phpmyadmin -Access denied for user
« Reply #7 on: July 29, 2005, 04:23:36 PM »
Quote from: "Rosey"
All I did is change password for root


I'm not sure I can be of much help.  If you changed the root password, then you have to change the info that is/was being used in config.inc.php for phpmyadmin.

You may also need to search these forums on phpmyadmin and root password.  IIRC it was highly stressed not to change it via phpmyadmin.  I think you will find instructions on how to reset the root password via SME so that other things won't break.  It's been a while, but I think that is correct.

That is why I create another user that has the rights to mysql and use it.

Sorry, I can't help more.

JB
......