Run this in mysql
Code:
grant all privileges on *.* to '[User]'@'[IPaddy]' IDENTIFIED BY '[Pass]';
Where [User] is a username, [IPaddy] is the ip address of your webserver, and [Pass] is a password. Edit the same username and password in your config.php.