0


プッシュ通知については 、「http://www.raywenderlich.com/3525/apple-push-notification-services-tutorial-part-2 」を確認しました。php push.php を実行するとき
を除いて、すべてが機能しています'Push script started (development mode) 1 Exiting with fatal error: exception 'PDOException' with message 'SQLSTATE[28000] [1045] Access denied for user'としてログを取得しました/Users/iphonedev/Desktop/Push Test/PushChatServer/push/push.php:83 の 'pushchat'@'localhost' (パスワードを使用: YES)' スタック トレース:

0 /Users/iphonedev/Desktop/Push Test/PushChatServer/push/push.php(83): PDO->__construct('mysql:host=loca...', 'pushchat', 'd]682#%yI1nb3' 、 配列)

1 /Users/iphonedev/Desktop/Push Test/PushChatServer/push/push.php(36): APNS_Push->__construct(配列)

2 {メイン}

'

-2 助けてください。私は多くの時間を費やしましたが、解決策が見つかりません。

4

2 に答える 2

2

データベースでのユーザー権限の問題です。PHPMyAdmin を参照してユーザーを追加し、下のスクリーンショットを参照してください。

pushchatユーザー名と パスワードとして追加しd]682#%yI1nb3、ホスト フィールドで localhost を選択し、すべての権限を確認して [go] を押します。そして、あなたは揺れるでしょう。

ここに画像の説明を入力

于 2013-04-25T10:38:01.087 に答える
0

i got it fix by updating the file push_config.php where i replace 'host' => 'localhost', by 'host' => 'localhost:8889'.

于 2013-04-26T09:00:23.077 に答える