The root user was mistakenly deleted in phpmyadmin. Using --skip-grant-tables, noticed that root exists in the mysql database. The password for this root was changed.
After all these, when trying to connect to mysql using the root user and updated password, the ff error appears: ERROR 2002(HY000) Cant connect to local mysql server though socket /opt/lampp/var/mysql/mysql.sock
Also, I realized that some databases are missing.
Can someone pls help!!!!