- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试让我的 Flask App Engine 项目读取存储在 Cloud SQL MySQL 5.7 数据库中的数据。出了点问题,因为我得到的只是 pymysql.err.OperationalError
.我一直在按照这里的说明操作:https://cloud.google.com/sql/docs/mysql/connect-app-engine .
App Engine uses a service account to authorize your connections to Cloud SQL. This service account must have the correct IAM permissions to successfully connect. Unless otherwise configured, the default service account is in the format service-PROJECT_NUMBER@gae-api-prod.google.com.iam.gserviceaccount.com.
7183 [Note] Access denied for user 'www-data'@'cloudsqlproxy~xxx.xxx.xx.xx' (using password: YES)
(IP 地址已编辑)。这有点令人困惑,因为“www-data”不是我在代码中指定的用户。 app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://' + ':' + db_user + '@/' + db_name + '?unix_socket=/cloudsql/' + connection_name
最佳答案
当尝试连接到具有错误凭据的数据库时,此错误是 mySQL 错误。
请验证您使用的值是否正确。
如果您不记得数据库用户名和密码,您可以按照以下步骤在控制台上更改它,这些步骤也说明了 here
- Go to CloudSQL console
- Select your database
- Go to users
- next to the user select click on the three dots
- And select Change password
- Type the new password and click OK
关于google-cloud-platform - 将 App Engine 连接到 Cloud SQL 访问被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60217436/
我正在开发一个 voip 调用应用程序。我需要做的是在接到来电时将 Activity 带到前台。我在应用程序中使用 Twilio,并在收到推送消息时开始调用。 问题是我试图在接到任何电话时显示 Act
我是一名优秀的程序员,十分优秀!