# 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通过此用户名密码来访问此数据库。

 

相关文章:

  • 2022-12-23
  • 2021-11-24
  • 2021-08-24
  • 2022-01-01
  • 2022-12-23
  • 2022-01-18
  • 2021-11-10
  • 2021-10-19
猜你喜欢
  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
  • 2021-07-18
  • 2021-12-29
  • 2022-12-23
相关资源
相似解决方案