关于“Google Cloud 基础知识:Cloud Storage 和 Cloud SQL 使用入门”的评价
522948 条评价
Rochelle M. · 已于 9 days前审核
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. · 已于 9 days前审核
Matteo Rossi G. · 已于 9 days前审核
Sadegh J. · 已于 9 days前审核
Lucas G. · 已于 9 days前审核
Matthew M. · 已于 9 days前审核
Ryan R. · 已于 9 days前审核
SOWMYA D. · 已于 9 days前审核
David M. · 已于 9 days前审核
Clint K. · 已于 9 days前审核
Sulakshana R. · 已于 9 days前审核
Valeria G. · 已于 9 days前审核
Sergio B. · 已于 9 days前审核
Fady G. · 已于 9 days前审核
Roua Y. · 已于 9 days前审核
Damian W. · 已于 9 days前审核
Alan D. · 已于 9 days前审核
Eslam S. · 已于 9 days前审核
Jerry W. · 已于 9 days前审核
Gideon O. · 已于 9 days前审核
all good
Vijender k. · 已于 9 days前审核
Abdou E. · 已于 9 days前审核
Fabian C. · 已于 9 days前审核
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. · 已于 9 days前审核
Cuong L. · 已于 9 days前审核
我们无法确保发布的评价来自已购买或已使用产品的消费者。评价未经 Google 核实。