Google Cloud-Grundlagen: Erste Schritte mit Cloud Storage und Cloud SQL Rezensionen
530591 Rezensionen
In the HTML there is a typo in the comments it says Secret Manger instead of Secret Manager: // password in the document root. Instead, we would store // it in a Secret Manger. <html> <head><title>Welcome to my excellent blog</title></head> <body> <h1>Welcome to my excellent blog</h1> <?php $dbserver = "CLOUDSQLIP"; $dbuser = "blogdbuser"; $dbpassword = "DBPASSWORD"; // In a production blog, we would not store the MySQL // password in the document root. Instead, we would store // it in a Secret Manger. For more information see // https://cloud.google.com/sql/docs/postgres/use-secret-manager try { $conn = new PDO("mysql:host=$dbserver;dbname=mysql", $dbuser, $dbpassword); // set the PDO error mode to exception $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); echo "Connected successfully"; } catch(PDOException $e) { echo "Database connection failed:: " . $e->getMessage(); } ?> </body></html>
Mykyta H. · Vor 4 Monate überprüft
Matteo Rossi G. · Vor 4 Monate überprüft
Sadegh J. · Vor 4 Monate überprüft
Lucas G. · Vor 4 Monate überprüft
Matthew M. · Vor 4 Monate überprüft
Ryan R. · Vor 4 Monate überprüft
SOWMYA D. · Vor 4 Monate überprüft
David M. · Vor 4 Monate überprüft
Clint K. · Vor 4 Monate überprüft
Sulakshana R. · Vor 4 Monate überprüft
Valeria G. · Vor 4 Monate überprüft
Sergio B. · Vor 4 Monate überprüft
Fady G. · Vor 4 Monate überprüft
Roua Y. · Vor 4 Monate überprüft
Damian W. · Vor 4 Monate überprüft
Alan D. · Vor 4 Monate überprüft
Eslam S. · Vor 4 Monate überprüft
Jerry W. · Vor 4 Monate überprüft
Gideon O. · Vor 4 Monate überprüft
all good
Vijender k. · Vor 4 Monate überprüft
Abdou E. · Vor 4 Monate überprüft
Fabian C. · Vor 4 Monate überprüft
Finally it worked but had some issues, partially caused by 'free propositions' around Cloud SQL. 1. startup script on VM did not go - tried 2 times, still did not run - installed manually. Dirty workaround but survived. Of course this screwed all sequence so I had to correct connectivity to DB and so on. 2. 'free Cloud SQL DB' proposition was crazy misleading - failed first try to do the lab on this - some parameters it took from 'friendly default' - only from second time I managed to evade this. Actually as for me - I liked this challenge but I do not know how many failed it because of unexpected issues. I still had enough time after all of these unexpected things.
Roman N. · Vor 4 Monate überprüft
Cuong L. · Vor 4 Monate überprüft
guruprasad n. · Vor 4 Monate überprüft
Wir können nicht garantieren, dass die veröffentlichten Rezensionen von Verbrauchern stammen, die die Produkte gekauft oder genutzt haben. Die Rezensionen werden von Google nicht überprüft.