创建远程连接mysql账号

create user 'username'@'%' identified by 'password';

GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;

create user 'aaa'@'%' identified by 'aaaaa'

grant all privileges on *.* to 'aaa'@'%'

猜你喜欢

转载自sunyiqiang.iteye.com/blog/2089386
今日推荐