# 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
 
PS:
IP需要换成允许该电脑访问的IP。
username/password:此处设置为用户名/密码,是允许所设置的IP通过此用户名密码来访问此数据库。

 

相关文章:

  • 2021-08-26
  • 2021-10-03
  • 2021-06-22
  • 2021-12-30
  • 2021-04-15
  • 2021-09-10
  • 2021-05-11
猜你喜欢
  • 2021-12-29
  • 2021-07-10
  • 2021-10-08
  • 2019-10-21
  • 2022-01-01
  • 2019-08-04
  • 2021-09-08
相关资源
相似解决方案