Mysql 8 root user all privileges lost.I changed some permissions from phpmyadmin.
. After that all tables disappeared. I found this answer Lost All Privileges in MYSQL.but did'nt help me.
I am using Wampserver 3.2 on windows 7 and mysql version is 8.0.18 Now showing only information_schema table. I login as root user and run all below commands.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
+--------------------+
mysql> use mysql;
ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'mysql;
mysql> SELECT user, host FROM mysql.user;
ERROR 1142 (42000): SELECT command denied to user 'root'@'localhost' for table '
user';
mysql> SHOW GRANTS;
+--------------------------------------------------------------+
| Grants for root@localhost |
+--------------------------------------------------------------+
| GRANT USAGE ON *.* TO `root`@`localhost` |
| GRANT PROXY ON ''@'' TO 'root'@'localhost' WITH GRANT OPTION |
+--------------------------------------------------------------+
How to revoke all privileges for 'ROOT' user
Please help