Connecting google cloud MySQL using PHP (Local)
azrulsalki opened this issue · 2 comments
azrulsalki commented
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.
This is my PHP code connecting to the database.
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
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
ohh sorry wrong section to post this issue..