-3

I'm following a guide online on Google Cloud Messenger. I got to this php file:

<?php

// Database config variables
define("DB_HOST", "localhost");
define("DB_USER", "xxxxxxxxx");
define("DB_PASSWORD", "xxxxxxx");
define("DB_DATABASE", "gcm");

// Google Cloud Messaging API Key
// Place your Google API Key
define("GOOGLE_API_KEY", "AIzaSyA81yS1VSj1WZXY_T"); 

?>

What should I fill in for DB_USER and DB_PASSWORD? What are the defaults?

josephoneill
  • 853
  • 2
  • 10
  • 33
  • possible duplicate of [Default login password](http://stackoverflow.com/questions/5818358/default-login-password) – Dan Jul 26 '14 at 15:41
  • `localhost` - host, `root` - username , and no password – Mr. Alien Jul 26 '14 at 15:41
  • PhpMyAdmin is a MySQL **client**, not a server. It doesn't have any kind of password of its own. Are you asking what your Google Cloud Messenger password is? – Álvaro González Jul 26 '14 at 15:41
  • If it's your installation of SQL you should have specified a password at install. If your not on your own installation, then ask for SQL administrator to set you up a user. – Daryl Gill Jul 26 '14 at 15:42

1 Answers1

3

Try something like this (connect as root)

<?php

// Database config variables
define("DB_HOST", "localhost");
define("DB_USER", "root");
define("DB_PASSWORD", "");
define("DB_DATABASE", "gcm");

// Google Cloud Messaging API Key
// Place your Google API Key
define("GOOGLE_API_KEY", "AIzaSyA81yS1VSj1WZXY_T"); 

?>
SpencerX
  • 5,453
  • 1
  • 14
  • 21