Made changes from the main file available at https://github.com/GoogleCloudPlatform/python-docs-samples
-
gcloud sql connect [instance_name] --user=mastergk
-
use [database_name]
-
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;