Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

[TIP] Can't access mysql with phpmyadmin after upgrade

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
Nimo
Tux's lil' helper
Tux's lil' helper
Posts: 111
Joined: Sun Nov 23, 2003 12:23 pm

[TIP] Can't access mysql with phpmyadmin after upgrade

  • Quote

Post by Nimo » Sun Nov 27, 2005 2:34 pm

After upgrading mysql and phpmyadmin I no longer could access my mysql-database with phpmyadmin. I got this error message:
Client does not support authentication protocol requested by server; consider upgrading MySQL client
I've been browsing the gentoo-forums and other sources of information for hours until I finally found the fix. First do:

Code: Select all

$ mysql -u root --password

Then execute this line that solves it all:

Code: Select all

SET PASSWORD FOR user@localhost = OLD_PASSWORD('your_password'); 
Remember to do it for both the pma and root/admin-user. I found this explanation to the problem in the mysql manual:
This problem is generally caused by using MySQL version 4.1 or newer. MySQL changed the authentication hash and your PHP is trying to use the old method.
//Nimo
Top
Enigma_Man
n00b
n00b
Posts: 55
Joined: Tue May 20, 2003 9:05 pm
Location: Massachusetts
Contact:
Contact Enigma_Man
Website

  • Quote

Post by Enigma_Man » Fri Dec 09, 2005 3:06 pm

Something I just ran into, not quite sure why. I upgraded phpmyadmin, and when trying to access the phpmyadmin page, it complained about not having sessions available. I had to recompile php with the "session" use flag. I don't think I had upgraded php lately, but I'm not the best at paying attention.

Hope it helps someone.

-Jesse
Top
Peach
Advocate
Advocate
User avatar
Posts: 3686
Joined: Sat Mar 08, 2003 9:00 pm
Location: London, UK
Contact:
Contact Peach
Website

Re: [TIP] Can't access mysql with phpmyadmin after upgrade

  • Quote

Post by Peach » Tue Dec 13, 2005 12:05 am

Nimo wrote:Then execute this line that solves it all:

Code: Select all

SET PASSWORD FOR user@localhost = OLD_PASSWORD('your_password'); 
Remember to do it for both the pma and root/admin-user.
I would add: the pma password to be re-set is found in config.inc.php in the phpmyadmin dir.
Just because I'm dumb.
Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom
Top
Post Reply

3 posts • Page 1 of 1

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic