1. mysql -h localhost -u root -p
输入密码
2. mysql> grant all privileges on *.* to 'username'@'%' identified by 'password'; //支持所有ip远程登录
3. mysql> flush privileges;
1. mysql -h localhost -u root -p
输入密码
2. mysql> grant all privileges on *.* to 'username'@'%' identified by 'password'; //支持所有ip远程登录
3. mysql> flush privileges;