nano /etc/my.cnf
add below at the end and save
[mysqld]
For debugging and recovery only
skip-grant-tables
skip-networking
systemctl restart mysqld
mysql
you should be able to logged in succesfully to mysql at this point then continue with below
flush privileges;
use mysql;
select user, password, Super_priv, Alter_priv from user;
store the password for root user
GRANT ALL PRIVILEGES ON . TO ‘root’@‘localhost’ IDENTIFIED BY PASSWORD ‘putthepasswordhere’;
GRANT ALL PRIVILEGES ON . to ‘root’@‘localhost’ WITH GRANT OPTION;
flush privileges;
exit
now we will go back to my.cnf and delete the part we added
nano /etc/my.cnf
delete the part above and save
systemctl restart mysqld
now all should be working.
if you have a user on cyberpanel called “root” stop using it, it causes some issues with this new phpymadmin single sign on. so create a new admin user then you shouldnt experience any issues.