---只能本地訪問,設置隨意訪問
update user set host='%' where host='localhost';
flush privileges;
---隨意訪問,設置只能本地訪問
update user set host = "localhost" where user = "hello" and host= "%";
flush privileges;
---設置固定的ip可以訪問
GRANT ALL PRIVILEGES ON *.* TO 'hello'@'133.22.88.77' IDENTIFIED BY 'mysql_password' WITH GRANT OPTION;
flush privileges;
