I've created a database using phpmyadmin. Now I'm trying to connect that database using terminal with the following command :
mysql -h server.com -u xyz -p
but after giving password. It's returning the following error :
ERROR 1045(28000) : Access denied for user 'database_name'@' IP ADDRESS' (using password : yes)
I've contacted with my hosting provider. They suggested me to white list my IP address from CPanel. I've already done that. But still I'm getting this error.
How can I overcome this issue and connect to a database to a remote server?