So for google cloud sql apps I need to connect to the database using php using this:
mysql_connect
$conn = mysql_connect(":/cloudsql/hello-php:my-cloudsql-instance", "<username>", "<password>");
I made an sql database using the sql prompt in the google console. Where do I find my username and password to connect to the sql database?
The default is user root with no password.
You can add more users or change the password yourself using the normal MySQL Commands using the sql prompt in the console.
You can also install phpMyAdmin on your app and use it to manage the database.
Cloud sql authenticates using oauth not username/password.