mysql> use mysql;
mysql> select host, user from user;
| host | user |
| localhost | root |
GRANT ALL PRIVILEGES ON *.* to 'username'@'IP address' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* to 'username'@'111.111.%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* to 'username'@'%' IDENTIFIED BY 'password';
flush privileges;
DELETE FROM mysql.user WHERE host=’IP address′ AND User=’username’;