mysql -uroot -p密码
grant all privileges on *.* to 'IP地址' identified by '密码' with grant option;
flush privileges;