MySQL Forums
Forum List  »  Newbie

Re: null, message from server: "Host '192.168.1.114' is not allowed to connect to this MySQL server"
Posted by: David Ashman
Date: January 25, 2008 12:17PM

Root may not have permission to be logged in from a machine other than localhost. You can see where root can be logged in from with the query:

SELECT `host` FROM mysql.user WHERE `user`='root'

% means anywhere, and that would be bad for a root account. Hopefully it says localhost.


You want to add a user for the app (you should never log in as root from an app!)

CREATE USER javaapp IDENTIFIED BY 'somepasswordhere';
GRANT SELECT,INSERT,UPDATE,DELETE ON ZoneVAXIN.* TO javaapp;

(or something like that)

Options: ReplyQuote


Subject
Written By
Posted
Re: null, message from server: "Host '192.168.1.114' is not allowed to connect to this MySQL server"
January 25, 2008 12:17PM
aa
June 17, 2008 01:22AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.