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

Hello
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?
BiXma AugmentedAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

aranaCommented:
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.
BiXma AugmentedAuthor Commented:
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.
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
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...

/etc/mysql/debian.cnf

/root/.my.cnf

Open in new window


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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CodeIgniter

From novice to tech pro — start learning today.