Hi,
If you got the error while trying to import some thing as root to the mysql database as below
Host 'xxx' is not allowed to connect to this MySQL server"
The issue is that the root user of mysql has no privileges on all host names on the local database machine,
To resolve the issue do the following
Login to mysql
mysql -u root -pxxxxx
Select the database mysql
mysql> use mysql
And run the command as below
GRANT ALL PRIVILEGES ON *.* TO root@'%' IDENTIFIED BY 'PASSWORD'
mysql> flush privileges;
and quit. Now you should be able to login as any hostname on the mysql machine.
Regards
Syamkumar.M
If you got the error while trying to import some thing as root to the mysql database as below
Host 'xxx' is not allowed to connect to this MySQL server"
The issue is that the root user of mysql has no privileges on all host names on the local database machine,
To resolve the issue do the following
Login to mysql
mysql -u root -pxxxxx
Select the database mysql
mysql> use mysql
And run the command as below
GRANT ALL PRIVILEGES ON *.* TO root@'%' IDENTIFIED BY 'PASSWORD'
mysql> flush privileges;
and quit. Now you should be able to login as any hostname on the mysql machine.
Regards
Syamkumar.M
No comments:
Post a Comment