When I try to connect with putty I get ‘host is not allowed to connect to this mysql server’. Why is that happening? Host and client are on my machine.
When I connect with the command line it connects.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to change how your configuration is set up.
Comment out the skip-networking section within your MySQL config:
# skip-networking, if you haveskip-networkingit will discard any TCP/IP connection which is likely why your failing.Once you have enabled your TCP/IP connections you will need to grant permission to your user to connect from other machines:
GRANT ALL PRIVILEGES ON *.* TO <username>@'%' IDENTIFIED BY '<password>';This will let username connect from any machine to your database with the appropriate password.