database - #1130 - Host ‘localhost’ is not allowed to connect to this MySQL server -


i issued command of:

drop user 'root'@'localhost'; grant privileges on . 'root'@'%'; 

...in phpmyadmin. after execution, forced out phpmyadmin. got:

error

#1130 - host 'localhost' not allowed connect mysql server,

how resolve problem?

use ip instead:

drop user 'root'@'127.0.0.1'; grant privileges on . 'root'@'%'; 

for more possibilities, see this link.

to create root user, seeing mysql local & all, execute following command line (start > run > "cmd" without quotes):

mysqladmin -u root password 'mynewpassword' 

documentation, , lost root access in mysql.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -