[Solved] MySQL: Access denied for user ‘username’@’host’ (using password: YES) error in Workbench,HeidiSQL

While connecting to SQL server hosted on your web hosting service provider following problem occurs.

  • Access denied for user ‘username’@’host’ (using password: YES)

even you have entered correct username and password…It happens because connection from outside world is blocked by server by default to solve this problem you have to either allow your static ip or give wildcard ‘%’ entry.

  • Error occurred  while connecting through MySQL Workbench
Access denied for user 'username'@'host'
  • Error occurred  while connecting through HeidiSQL
Access denied for user 'username'@'host'
  • Solution

1] Login to cPanel

2] Click on Remote MySQL

3] Enter ‘%’ wildcard entry to Access host

4] Done.5] Caution: Allowing ‘%’ all ip to access DB creates large security hole. you can also allow only your own IP.

Leave A Reply

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More