Koozali.org: home of the SME Server

Unable to access mysql with phpmyadmin

Offline beast

  • *
  • 245
  • +0/-0
Unable to access mysql with phpmyadmin
« on: April 07, 2009, 08:04:40 AM »
Hi

For some strange reason I am now unable to access mysql with phpmyadmin - do not know what I have made of changes!

I have tried to reset the password with the following sequence of commands:

cd /var/service/mysqld
sv d .
expand-template /root/.my.cnf
expand-template /var/service/mysqld/set.password
/usr/libexec/mysqld --bootstrap --user=mysql --skip-grant-tables < ./set.password
sv u .

But I am still unable to access mysql. BTW it looks to me that the above commands reset a user named mysql and not root/admin user but I may be wrong?

In any case I get the following error when I log into mysql with phpmyadmin:

#1045 - Access denied for user 'admin'@'localhost' (using password: YES)

Please give me a hint  :P

Regards
Benny

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Unable to access mysql with phpmyadmin
« Reply #1 on: April 07, 2009, 08:39:39 AM »
Moving this topic to SME 7.x Contribs as it is more appropriate there.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Unable to access mysql with phpmyadmin
« Reply #2 on: April 07, 2009, 08:46:29 AM »
I have tried to reset the password with the following sequence of commands:
Never start by that. First try and properly diagnose what you are doing is correct.

But I am still unable to access mysql.
How are you accessing MySQL you never showed us, it should be enough to login as root user on the SME Server shell and type just
Code: [Select]
mysqlCan you verify that that still works?

BTW it looks to me that the above commands reset a user named mysql and not root/admin user but I may be wrong?
Yes you are :-) It uses a user mysql to execute the queries in the file, it can do so as it uses the skip-grant-tables option as to temporarily disable credential checking (a special routine to regain access when locked out).

In any case I get the following error when I log into mysql with phpmyadmin:

#1045 - Access denied for user 'admin'@'localhost' (using password: YES)

Please give me a hint  :P
You did read and follow http://wiki.contribs.org/PHPMyAdmin#Additional_information as well as http://wiki.contribs.org/PHPMyAdmin#Bugs ?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline beast

  • *
  • 245
  • +0/-0
Re: Unable to access mysql with phpmyadmin
« Reply #3 on: April 07, 2009, 08:57:42 AM »
Quote
How are you accessing MySQL you never showed us, it should be enough to login as root user on the SME Server shell and type just
Code: [Select]
mysqlCan you verify that that still works?
Yes that works ok!
Quote
You did read and follow http://wiki.contribs.org/PHPMyAdmin#Additional_information as well as http://wiki.contribs.org/PHPMyAdmin#Bugs ?
Yes I have read it - did not give me any new information?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Unable to access mysql with phpmyadmin
« Reply #4 on: April 07, 2009, 09:01:21 AM »
Yes that works ok!Yes I have read it - did not give me any new information?
Yes it should have, it tells you to report problems in the bugtracker and not here (it even provides you a direct link). Every time you post a message the same advice is given to you as well:

Don't report problems here - Please report bugs and potential bugs in the bug tracker
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)