iphone - push notification script error -
have gone through 'http://www.raywenderlich.com/3525/apple-push-notification-services-tutorial-part-2' push notification.
working me except when run php push.php got log
'push script started (development mode) 1 exiting fatal error: exception 'pdoexception' message 'sqlstate[28000] [1045] access denied user 'pushchat'@'localhost' (using password: yes)' in /users/iphonedev/desktop/push test/pushchatserver/push/push.php:83 stack trace:
0 /users/iphonedev/desktop/push test/pushchatserver/push/push.php(83): pdo->__construct('mysql:host=loca...', 'pushchat', 'd]682#%yi1nb3', array)
1 /users/iphonedev/desktop/push test/pushchatserver/push/push.php(36): apns_push->__construct(array)
2 {main}
'
please -2 me, have spent time unable find solution.
thats issue of user privileges database. add user browsing phpmyadmin , see below screenshot assistance.
add pushchat
username , d]682#%yi1nb3
password, select localhost in host field, check privileges , press go. , rocking.