mac环境下r远程连接mysql,无法在Mac上使用MySQL Workbench连接到远程服务器

I'm trying to connect to a remote database but it gives me an error that the password is wrong:

Connecting to MySQL server www.test.net... Access denied for user

'test'@'test' (using password: YES)

I know that the password is correct, as I can access to the cpanel with it, but it always gives me the same error, I even tried to change the user to one of the users on that database, but nothing seems to work

Answer

It seem this question gets a lot of viewers, so I might as well tell you what solved the problem for me:

I had to give permission to my IP from the server, so that my PC would be recognized as safe to access the DB

解决方案

Does the database allow access to the user test from the IP you are making the call to?

In the users table you specify a host from which this user can access the database. Often this may default to localhost or 127.0.0.1

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值