Lost mysql username password, but i have codeigniter script working on my ubuntu

BiXma Augmented
BiXma Augmented used Ask the Experts™
I have a vps server with mysql apache andphp installed, and working codeigniter php script.
I have the SSh password. but I lost my phpmyadmin uername password.
What can I do?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
You can reset it to a new password given that you have admin or root access, but you cannot recover the lost one. if you have the source of the codeigniter script you could check if the password is somewhere there in plaintext, if the codeigniter pwd and your is not the same one, you can  try to copy the encrypted password from the codeigniter account in the passwords table and copy it exactly to your user account password field, then use for your account the same pwd you use in codeigniter.


yes i have the source code of the codeingiter, that's why i want help find the lsot password and username of db in the source.
Fractional CTO
Distinguished Expert 2018
Well you don't really require your PMA password. You can go through a PMA password reset + no real point.

Every MariaDB/MySQL install normally saves the database root password somewhere. Usual candidates...



Open in new window

Just use one of these + you'll have access to all databases.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial