Connect to Cloud SQL from App Engine in Google Cloud

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ก.ค. 2024
  • #appengine #gcp
    Tutorial to connect Cloud SQL from App Engine in Google Cloud.
    GitHub URL: github.com/cloudadvocate/goog...
    - Commands Used:
    gcloud sql connect gk-demo-utube --user=mastergk
    create table demo_tbl(
    demo_id INT NOT NULL AUTO_INCREMENT,
    demo_txt VARCHAR(500) NOT NULL,
    PRIMARY KEY ( demo_id )
    );
    insert into demo_tbl(demo_id,demo_txt) values(1,"hello guys, thanks for watching my video :)")
    select demo_txt from demo_tbl;
    ----------
    PLEASE SUBSCRIBE ➡️bit.ly/36x6qQy ❤️
    BUY ME A COFFEE ☕bit.ly/3lumyqx
    ----------
    PLAYLISTS:
    - Associate Cloud Engineer Study Guide: bit.ly/37y1dYl
    - Google Cloud Playlist: bit.ly/37uMZal
    ----------
    - Questions? Thoughts? Disagreements? Tell us here in the comments.
    ----------
    LETS CONNECT:
    👍 Facebook: / multicloudguy
    📸 Instagram - / multicloudguy
    🐦 Twitter - / multicloudguy
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 107

  • @CloudAdvocate
    @CloudAdvocate  4 ปีที่แล้ว +3

    Thank you all for your support and warm comments!. Let me know if you are having any issue in the tutorial and don't forget to clean up the resources :)

    • @suhinshetty6125
      @suhinshetty6125 4 ปีที่แล้ว

      Yes i would request you to show clean up of resources once tutorial is completed

    • @CloudAdvocate
      @CloudAdvocate  4 ปีที่แล้ว

      Sure Suhin.

    • @rajaramsavant4384
      @rajaramsavant4384 3 ปีที่แล้ว +1

      Very informative video. Thanks for uploading. Also, can u show how to connect to cloud sql server from java service(within gcp) ? Unable to find video on this.

    • @CloudAdvocate
      @CloudAdvocate  3 ปีที่แล้ว +2

      Sure Rajaram, will try to work on that.

    • @sachinmengade9589
      @sachinmengade9589 3 ปีที่แล้ว

      Great explanation as always GK..Could you please make a video on App Engine Flexible or share me the link if you already have one..Thanks :)

  • @chrisoaus5328
    @chrisoaus5328 4 ปีที่แล้ว +2

    I spent all day trying to figure this out through the google docs. This step by step instructional was literally the most helpfull video ive watched for a while and got my app working. THANK YOU SO MUCH!

  • @muralikrishna9499
    @muralikrishna9499 4 ปีที่แล้ว +1

    Thank you for the video! I will try implementing it today!

  • @adamtechdays
    @adamtechdays 3 ปีที่แล้ว

    Your videos and advice are so valuable. My understanding of Google cloud has increased enormously by watching your videos and taking your advice. Great work sir!

  • @genacc2458
    @genacc2458 3 ปีที่แล้ว

    You are a lifesaver!!! I dont normally comment but this video is so good, I have to! thanks!!

  • @hankasiman9945
    @hankasiman9945 3 ปีที่แล้ว

    Thanks very much four this video. I'm new with GCPI really need this video for my test deployment + mysql. This video really help me. Keep it up bro

  • @Chalbano
    @Chalbano 3 ปีที่แล้ว +1

    I really needed this video a two years ago! lol Although today is gona late, before late than never! tks

  • @justkeepfilming9767
    @justkeepfilming9767 4 ปีที่แล้ว +3

    Thank you so much for this video! Keep it up :)

  • @EuroTravelDiaries
    @EuroTravelDiaries 6 หลายเดือนก่อน

    this is the excellent video i have come across. thanks man.

  • @dimitreortt6972
    @dimitreortt6972 4 ปีที่แล้ว

    Thank you very much for this helpful guide!

  • @RahulKumar-wc2on
    @RahulKumar-wc2on 3 ปีที่แล้ว +1

    Amazing one..really helpfull

  • @skviknesh
    @skviknesh ปีที่แล้ว

    This was really helpful 🙏

  • @kashishhgoel
    @kashishhgoel ปีที่แล้ว

    Thank you so much @Cloud Advocate for making this video. This made my job so much easier! If I could hit the like button more than once to show my appreciation, I would hit it a thousand times! Thank You!

  • @subesingh7285
    @subesingh7285 4 ปีที่แล้ว

    Excellent!!!!

  • @paracha3
    @paracha3 3 ปีที่แล้ว

    Great videos

  • @louis8935
    @louis8935 3 ปีที่แล้ว +1

    Thanks alot can you make a tutorial on load balancers

  • @prashantjha3716
    @prashantjha3716 4 ปีที่แล้ว

    Thanks buddy, It was really helpful.

  • @alonewolf7682
    @alonewolf7682 9 หลายเดือนก่อน

    great video

  • @lookergoog3034
    @lookergoog3034 2 ปีที่แล้ว

    Solved MY PROBLEM WOOOHOOOO!

  • @sumon051
    @sumon051 4 ปีที่แล้ว

    Great! Thanks for your video. Keep it up..:) . It helps a lot :)

  • @indrareddygayam3878
    @indrareddygayam3878 4 ปีที่แล้ว +1

    Cool Content! Gk,can you please make a video on EKS , I am planning to work on it in one of my projects ☺

  • @osamozilla7898
    @osamozilla7898 ปีที่แล้ว

    Two words : Thank You

  • @mahapappan9304
    @mahapappan9304 3 ปีที่แล้ว +1

    Hi GK, that's a great guide and most appreciated. Continue posting more guides on GCP. Many are looking for such valuable info. The following points refers:
    1/ I have an HTML file with 4 textboxes, 9 radio buttons and a submit button.
    2/ I have GPC mySQL database setup with one table (tblCustomer).
    3/ How can I connect to the mySQL database? Enabling data collection into the table when people hit the Submit button?
    Please advice.
    Thanking you in advance.

    • @CloudAdvocate
      @CloudAdvocate  3 ปีที่แล้ว

      This is easy, create a basic PHP application and you can connect to database using that .

  • @cliosightsoftware9523
    @cliosightsoftware9523 4 ปีที่แล้ว +2

    Hello, Thanks for making this video. Can you please make another one for Express js & Node js connecting to MySQL and querying DB from code?

  • @manukm07
    @manukm07 3 ปีที่แล้ว

    Thanks for the video. Can you please show how to connect to ClodSQL for Postgres from Cloud Function via CloudSQL proxy

  • @thecloudterminal
    @thecloudterminal ปีที่แล้ว

    Thank you for creating this amazing video

  • @LatheshBl
    @LatheshBl 3 ปีที่แล้ว

    Thanks for the tutorial, can you please explain how to access cloud sql from Dataproc

  • @richardroach45
    @richardroach45 3 ปีที่แล้ว

    Thanks Great Video - can the GIT Postgres connection file, they appear to be deprecated from your repo.. Can you also create a connection video on the Serverless VPC connecting to Postres thro the connection name.

  • @stevenscholtz8013
    @stevenscholtz8013 3 ปีที่แล้ว

    You are awesome, thank you

  • @webeltech8755
    @webeltech8755 3 ปีที่แล้ว

    Hey. I have an angular frontend with a spring boot rest API as a backend using MySQL database instance on Google cloud. I have deployed both the front and back end to Google cloud app engine but I can't figure out how the front end can talk to the backend while on Google cloud. Please guide

  • @summetprajapati9229
    @summetprajapati9229 2 ปีที่แล้ว

    thanks!
    how to connect multiple databases ?

  • @GabrielTaraIvaldi-
    @GabrielTaraIvaldi- 2 ปีที่แล้ว

    hello, I want to ask how do I deploy my custom machine learning and connect it to Compute Engine? and what if I use app engine instead of compute engine? please help for me as a beginner

  • @Cloud-Radio
    @Cloud-Radio 2 ปีที่แล้ว

    public cloudsql is rare ..no one uses it because of security concerns...but cool !!

  • @raweewanpraparaweewan4088
    @raweewanpraparaweewan4088 4 ปีที่แล้ว

    Thank you for the video! May I ask you some question? I would like to know if I can run this app locally or not? Deploying app engine is take so long time...

    • @CloudAdvocate
      @CloudAdvocate  4 ปีที่แล้ว

      Yes, you can install python app from your server and connect to cloudsql

  • @Ankit-Cloud
    @Ankit-Cloud 2 ปีที่แล้ว

    Can you please make a video on how to configure and deploy your application on compute engine ?

  • @debjyotibanerjee7750
    @debjyotibanerjee7750 2 ปีที่แล้ว

    Can we move our application deployed in app engine flex env to a different zone, cause I am getting a constant error while trying to deploy the changes that resources in my zone is not available enough, so can I move it to different zone?

  • @vrajendramandloi5917
    @vrajendramandloi5917 3 ปีที่แล้ว

    Hi buddy do you have anything for connecting from cloud run to cloud sql

  • @billinginsuranceshreeaaiji9934
    @billinginsuranceshreeaaiji9934 3 ปีที่แล้ว

    I developed the project using spring boot but not able to connect to cloud SQL. googled it to service account issue, but not sure how to fix it. Can you help?

  • @darrennienaber6488
    @darrennienaber6488 10 หลายเดือนก่อน

    Hi there, has there been any video content regarding nodejs and cloud sql? I found this in my search and was wondering if it ever came to fruition?

  • @sanketparab5090
    @sanketparab5090 3 ปีที่แล้ว

    Thanks for your video...Can you please make video on proxy sql

  • @sachinmengade9589
    @sachinmengade9589 3 ปีที่แล้ว

    Great explanation as always GK..Could you please make a video on App Engine Flexible or share me the link if you already have one..Thanks :)

  • @folksupport1668
    @folksupport1668 3 ปีที่แล้ว

    I have firebase data and i wanted to transfer entire that data to cloud postgresql is there any possibility, can you guide me

  • @shubhk108
    @shubhk108 4 ปีที่แล้ว

    Hello sir thanks for this video, and I'm requesting you to plz make video on eclipse plz sir, I appreciate your efforts thank you so much in advance

    • @CloudAdvocate
      @CloudAdvocate  4 ปีที่แล้ว

      Sorry mate, that doesn't fall under my niche. May be in future.

  • @jeganchandrashaker4870
    @jeganchandrashaker4870 2 หลายเดือนก่อน

    Hi can you please explain about how to deploy our react js project with backend databases

  • @santiagoandresortiz5563
    @santiagoandresortiz5563 2 ปีที่แล้ว

    great video....i have a question....i have a python script where i connect to an instance in my google cloud console. if i run it it works fine. But when i try to run the script using google app engine in the same project as the sql instance....it wont let me connect....please help

  • @antoinecompagnie6640
    @antoinecompagnie6640 4 ปีที่แล้ว

    Thanks for this very insightful video! Keep up! Just a question: how to connect to Cloud SQL from COMPUTE engine? I have a python script that runs twice a month which would be happy to update the database (rather than updating a csv, then dump it into the database (something I haven't even done yet)).

    • @CloudAdvocate
      @CloudAdvocate  4 ปีที่แล้ว

      From compute engine it would be even easier. After you install your app try connecting to sql database using driver. If firewall is proper...it should work. Let me know if you run into issues.

    • @louis8935
      @louis8935 3 ปีที่แล้ว

      @@CloudAdvocate wat do u mean using driver

  • @aryanurnh2309
    @aryanurnh2309 ปีที่แล้ว

    what if you have already deployed app status 502 bad gateway?

  • @arvindrawat4520
    @arvindrawat4520 4 หลายเดือนก่อน

    Sir, I have a data in GCP. How to transfer data from GCP to power app and power automate.

  • @debjyotibanerjee7750
    @debjyotibanerjee7750 2 ปีที่แล้ว

    Is this flow completely production level?

  • @ManishKumar-pr7hs
    @ManishKumar-pr7hs 4 ปีที่แล้ว

    i need your your help. If you have an idea of "nested virtualization" on gcp. Please make video on it (Windows Server Desktop and Linux) and install guest os in Virtual Machine.

    • @CloudAdvocate
      @CloudAdvocate  4 ปีที่แล้ว

      Sorry Manish, never tried it. Let me see if I can try.

  • @meteordzgaming3251
    @meteordzgaming3251 4 ปีที่แล้ว

    the one and only video i learned so mush in thank u so mush
    im just having troubles connecting to database ;im using php can u help me plz ????

    • @CloudAdvocate
      @CloudAdvocate  4 ปีที่แล้ว +1

      Thank you, what is the issue you are facing with PHP?

    • @meteordzgaming3251
      @meteordzgaming3251 4 ปีที่แล้ว

      I cant connect to the cloud sql idk why
      I guess it's about the app.yaml file
      ( I made at first a database handler file and it didnt work) so plz help me as soon as you can it's my graduation project

  • @alanwongsiulun6452
    @alanwongsiulun6452 3 ปีที่แล้ว

    thanks alot sir. Would you make one for Django? thanks alot

    • @CloudAdvocate
      @CloudAdvocate  3 ปีที่แล้ว

      There is a very good tutorial on that here:
      cloud.google.com/python/django/appengine

  • @raghavendrac1053
    @raghavendrac1053 2 ปีที่แล้ว

    how to host the spring boot application with mysql database with so many tables in google cloud .Please make vedio on this

  • @muhammadshahzadanwar6166
    @muhammadshahzadanwar6166 2 ปีที่แล้ว

    How did this worked mine is not importing pymysql. Did I miss something?

  • @himanshusingal527
    @himanshusingal527 ปีที่แล้ว

    Hello Sir, I have my node js app in which I have used knex js to write migrations and I am calling "npx knex migrate:latest" command in postinstall package.json scripts but the issue is as I added this command to run migrations and run command "gcloud app deploy" my build started failing with timeout error the database server is hosted in google cloud sql and app is deployed on app engine, please help me with the solution

  • @sunilchandran4u
    @sunilchandran4u 3 ปีที่แล้ว

    --no-promote is the flag to use if no immediate traffic redirection required.

  • @prasad-space
    @prasad-space 2 ปีที่แล้ว

    We should use --no-promote

  • @shankarganesh2842
    @shankarganesh2842 ปีที่แล้ว

    No promote flag for not sending traffic even deploying the app

  • @canislatrans6606
    @canislatrans6606 ปีที่แล้ว

    Congratulation! Great video. I get an error Can't connect to MySQL server. Temporary failure in name resolution . I cerated a new project, new database, table, new App Engine Service. Both mySQL server and GAE are in the same region us-central. Also, I gave permission to the App Engine service account of Google SQL Admin and Enabled SQL API. Any clue? do you have another video giving permissions to App Engine ? any help will be wonderfil. Thanks!

  • @juanmatusg
    @juanmatusg 3 ปีที่แล้ว

    Is it possible to do it with SQL Server?

  • @iamtafara
    @iamtafara 3 ปีที่แล้ว

    Howdo i donne using php

    • @CloudAdvocate
      @CloudAdvocate  3 ปีที่แล้ว

      Pretty similar as far as configurations are concerned.

  • @user-qi4cu9le4l
    @user-qi4cu9le4l 10 หลายเดือนก่อน

    ans is - --no-promote

  • @clinton11994
    @clinton11994 3 ปีที่แล้ว

    socket connections are bad in production, TCP connection demo would have been better.

    • @CloudAdvocate
      @CloudAdvocate  3 ปีที่แล้ว +1

      Appreciate your feedback..will try to work on it in the upcoming ones.

  • @nehapinky9914
    @nehapinky9914 4 ปีที่แล้ว +1

    --no-promote is the flag

  • @hendrickrolandocalderonagu7312
    @hendrickrolandocalderonagu7312 4 ปีที่แล้ว

    ERROR 1045 (28000): Access denied for user 'xx'@'xxxx.xxxx.xxx.xxx.' (using password: YES)

    • @CloudAdvocate
      @CloudAdvocate  4 ปีที่แล้ว

      Did you check the settings of RDS if you have allowed ?

  • @shashikiran5015
    @shashikiran5015 3 ปีที่แล้ว

    Hi GK, Thanks for the video, I have followed this process completely. but after executing the gcloud app deploy the URL , is not showing me any result. Can you help me with this what might be the error here.
    Can't reach the page. Please help..

    • @CloudAdvocate
      @CloudAdvocate  3 ปีที่แล้ว

      What's the error you see in app logs? Either in console or command line

    • @shashikiran5015
      @shashikiran5015 3 ปีที่แล้ว

      @@CloudAdvocate I got it after that it is due to port number and is working now . Thanks for your video which helped me ...

    • @shashikiran5015
      @shashikiran5015 3 ปีที่แล้ว

      @@CloudAdvocate can you suggest any devops course with GCP in any e-learning website if have info...

    • @shashikiran5015
      @shashikiran5015 3 ปีที่แล้ว

      @@CloudAdvocate GK again facing error as it is throwing
      "error didnot detect your browser. " go to this link like that some link came but still that link is not working. Not sure where I am going wrong. Pls help me...

  • @ManishKumar-pr7hs
    @ManishKumar-pr7hs 4 ปีที่แล้ว

    please udpate me.it's urgent.