Execute: Flush PRIVILEGES;

After you create a new user or change the password of mysql, flush PRIVILEGES must be used to refresh the mysql system privileges table. Otherwise, access is denied or changes are performed.