I lost my root privileges on localhost/phpmyadmin and I don’t know if I accidentally deleted root or if I lost my root password… :
- When I type “root” with no password on config.inc.php, I can access to localhost/phpmyadmin but I can’t see my databases nor my privileges. I have nothing.
- When I type “root” with some possible passwords, they all fail. I tried every logins and passwords possibilties, I always get the #1045 error (password: “YES”)
**- **In my console server (ubuntu via PuTTY), I can type mysql -u root -p and access to MySQL with a password…
Can someone please help me? Thank you!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
If I understand you correctly, you can connect to MySQL from the command line but not phpMyAdmin?
Can you try logging in over the command line MySQL and issuing the following command?
flush hosts;
Also make sure in your config.inc.php that root is permitted to log in:
$cfg['Servers'][$i]['AllowRoot'] = TRUE;
Can you try logging in over phpMyAdmin again then?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.