MySQL Forums
Forum List  »  Newbie

which query is properly for user ip?
Posted by: Francisco Pastrana
Date: September 26, 2014 11:09AM

Hi!

Just a question.

To change a user's ip, wich solution can be better or most importantly. One of the solutions is wrong?

I can't see any difference in the result.



RENAME USER user@ipaddress1 TO user@ipaddress2;

update mysql.users set Host = newIP where Host = oldIP;
flush privileges;

Options: ReplyQuote


Subject
Written By
Posted
which query is properly for user ip?
September 26, 2014 11:09AM


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.