I know this question has been asked many times, but no one answered my problem. Please read carefully.
I launched my site on a local hosting using a Wamp server. When I decided today to run an Acunetix check for vulnerabilities on my localhost server.
Acunetix sent a ton of commands to the mysql table in a short period of time (since it ran commands quickly), which is why my mysql server crashes with an error:
#1130 - Host 'localhost' is not allowed to connect to this MySQL server
What I already tried:
Starting mysql through mysqld --skip-grant-tables I had access to mysql during this, so I tried to start
DROP USER 'root'@'127.0.0.1'; GRANT ALL PRIVILEGES ON . TO 'root'@'%';
But I got an error:
mysql> DROP USER 'root'@'127.0.0.1'; GRANT ALL PRIVILEGES ON . TO 'root'@'%'; ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables opt ion so it cannot execute this statement ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TO 'r oot'@'%'' at line 1
I admit that I am mysql noob, but I did my homework and searched google but couldn't find a solution.
Any help?
I was able to fix the problem by reinstalling the Wamp server and completely removing it even with mysql.
mysql phpmyadmin wamp
Lambasoft
source share