# mysql -u root -p
Enter password:
mysql> grant all privileges on *.* to 'username'@'192.168.11.113' identified by 'password';
mysql> flush privileges;
mysql> exit
Enter password:
mysql> grant all privileges on *.* to 'username'@'192.168.11.113' identified by 'password';
mysql> flush privileges;
mysql> exit
PS:
IP需要换成允许该电脑访问的IP。
username/password:此处设置为用户名/密码,是允许所设置的IP通过此用户名密码来访问此数据库。