title: Android Application - Connecting to Google Cloud SQL
body: <p>I've spent 2 days (about 30 hours to find this answer, read all related posts on here and tried everything).</p>
  
  <p>I can't find any SPECIFIC answers relating to android apps and this problem.</p>
  
  <p>I have made an Instance of my Google Cloud SQL, connected to it using MySQL, created my database tables and updated the Cloud SQL.</p>
  
  <p>Built a basic app to test connectivity and insert data into one of the tables.</p>
  
  <p>Problem I am having is:
  Generating Cloud SQL specific Endpoints.</p>
  
  <p>I generated backend Endpoints using Eclipse.</p>
  
  <p>I right clicked on my AppEngine Settings:
  My Application ID is in there (set all permissions and enabled Google Cloud SQL)</p>
  
  <p>Clicked on Enable Google Cloud SQL --> Use Google Cloud SQL Instance</p>
  
  <p>Here is where I think the problem is: It always fails.
  Put my Instance Name: Soemthing:Something
  Put my Data BaseName: playerNames
  Put my Database Username as root
  Put my Database Password to blank</p>
  
  <p>Get this error: 
  Creating SQL Model Connection to Profile (MyTestApp-AppEngine.GoogleCloudSQL.DevInstance).
  Details: Error creating SQL Modem Connection connection to Profile (MyTestApp-AppEngine.GoogleCloudSQL.DevInstance).
  (Error:null)
  java.lang.NullPointerException</p>
  
  <p>Could Not connect to Profile (MyTestApp-AppEngine.GoogleCloudSQL.DevInstance).
  Error creating SQL Model Connection connection to Profile (MyTestApp-AppEngine.GoogleCloudSQL.DevInstance). (Error: null)
  java.lang.NullPointerException
  OK</p>
  
  <p>Repeated same process but with a password I set for root:</p>
  
  <p>Could not connect to Profile (MyTestApp-AppEngine.GoogleCloudSQL.DevInstance).
  Error creating SQL Model Connection connection to Profile (MyTestApp-AppEngine.GoogleCloudSQL.DevInstance). 
  (Error: Access denied for user 'root'@'localhost' (using password: YES))</p>
  
  <p>Access denied for user 'root'@'localhost' (using password: YES)</p>
  
  <p>Error creating Google Cloud SQL Connection factory connection to Profile (MyTestApp-AppEngine.GoogleCloudSQL.DevInstance). </p>
  
  <p>(Error: Access denied for user 'root'@'localhost' (using password: YES))</p>
  
  <p>Access denied for user 'root'@'localhost' (using password: YES)</p>
  
  <p>I am pretty sure that I won't be able to even use any of the code unless I get this portion working.  It doesn't generate any Endpoints for Google Cloud SQL - only for Messaging and Device Info</p>