MySql:从任何主机授予根用户登录权限

Note that this is Not very secure, and should only be used for a local development box where you don’t feel like setting up individual permissions, but still need to connect from other machines.请注意,这...
摘要由CSDN通过智能技术生成

Note that this is Not very secure, and should only be used for a local development box where you don’t feel like setting up individual permissions, but still need to connect from other machines.

请注意,这不是很安全,仅应用于您不想设置个人权限,但仍需要从其他计算机连接的本地开发箱。

To configure this feature, you’ll need to update the mysql user table to allow access from any remote host, using the % wildcard.

要配置此功能,您需要使用%通配符更新mysql用户表,以允许从任何远程主机进行访问。

Open the command-line mysql client on the server using the root account.

使用根帐户打开服务器上的命令行mysql客户端。

mysql -uroot

mysql -uroot

Then you will want to run the following two commands, to see what the root user host is set to already:

然后,您将需要运行以下两个命令,以查看root用户主机已设置为什么:

use mysql;select host, user from user;

使用mysql;从用户中选择主机,用

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值