我有一个Cloud-SQL实例自行重启。无论如何,重启失败并出现以下错误:
2018-02-08 16:33:22.552 CST
+ exec /usr/sbin/mysqld --defaults-file=/mysql/my.cnf
Expand all | Collapse all {
insertId: "s=1eb5f90cdd6e4332b0bfd1260e067581;i=21ee;b=4ff35c4064f348848019b0498c04fcfd;m=50ef121;t=564baffd724ea;x=3528d562989af59-0@b1a"
logName: "projects/xxxxxxx/logs/cloudsql.googleapis.com%2Fmysql.err"
receiveTimestamp: "2018-02-08T22:33:31.058969560Z"
resource: {
labels: {
database_id: "xxxxxx:yyyyyyyy"
project_id: "yyyyyyy"
region: "us-central"
}
type: "cloudsql_database"
}
severity: "ERROR"
textPayload: "+ exec /usr/sbin/mysqld --defaults-file=/mysql/my.cnf"
timestamp: "2018-02-08T22:33:22.552734Z"
}
查看Cloud-SQL实例控制台,所有操作链接都显示为灰色,我的实例显示黄色警告标志。显示操作和登录控制台:
Feb 8, 2018, 3:50:48 PM Restart An unknown error occurred.
点击用户和数据库标签,我有这个:
Users/Database cannot be loaded from MySQL at this time. Make sure your instance is runnable.
我无法通过控制台或gcloud cl重新启动实例:
$ gcloud sql instances restart xxxxxxxx
The instance will shut down and start up again immediately if its
activation policy is "always." If "on demand," the instance will start
up again when a new connection request is made.
Do you want to continue (Y/n)? y
ERROR: (gcloud.sql.instances.restart) HTTPError 409: The instance or operation is not in an appropriate state to handle the request.
使用MySQL工作台通过ip查询仍然有效但我的Firebase云功能无法通过套接字路径访问MySQL数据库。
不确定如何取回我的实例,我应该创建另一个实例并尝试恢复吗?