GoogleCloudPlatform/node-red-contrib-google-cloud

Connecting google cloud MySQL using PHP (Local)

azrulsalki opened this issue · 2 comments

Hi,
How do i connect a PHP program to send data to the google cloud MySQL. I was able to ping my database using command prompt but when I tried to send data using my PHP, there are no error in the syntax, unfortunately the data was not inserted into my database. Here I attached some picture:

Here is the image of me pinging to the database.
Untitled

This is my PHP code connecting to the database.

Untitled1

Unfortunately, my database did not receive any input from my PHP.

Do i need to do firewall setting to allow my pc ip?

I have checked for all possibility of syntax error, but i managed to send data to a localhost DB but cannot send it to the cloud.

ohh sorry wrong section to post this issue..