1、创建局域网用户:grant all on *.* to ranger@"%" Identified by "111111";
解释:创建一个用户名为ranger,密码为111111的用户,这个用户可以再任何ip地址(%)对任何数据表(*.*)进行任何操作(all)
2、绑定本机ip
修改my.cnf(/etc/mysql/my.cnf)  bind-adress = 10.66.3.80
3、重启mysql
/etc/init.d/mysql restart
4、登陆
mysql -h10.66.3.80 -uranger -p;

转自:http://hi.baidu.com/rangerchen/blog/item/e7e34ff1bb2d35ca7931aab7.html

相关文章:

  • 2021-11-23
  • 2021-12-02
  • 2021-07-18
  • 2022-12-23
  • 2021-07-13
  • 2021-09-01
  • 2021-12-12
  • 2022-01-12
猜你喜欢
  • 2022-01-29
  • 2021-12-19
  • 2021-12-28
  • 2022-12-23
  • 2021-06-18
  • 2022-12-23
  • 2022-01-06
相关资源
相似解决方案