GoogleCloudPlatform / node-red-contrib-google-cloud

Node-RED nodes for Google Cloud Platform
Apache License 2.0
90 stars 57 forks source link

Connecting google cloud MySQL using PHP (Local) #81

Closed azrulsalki closed 4 years ago

azrulsalki commented 4 years ago

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?

azrulsalki commented 4 years ago

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.

azrulsalki commented 4 years ago

ohh sorry wrong section to post this issue..