如果错误为 set Service Networking
service account as servicenetworking.serviceAgent role on consumer
project,请停用 Service Networking API,然后重新启用。此操作会创建继续执行该过程所需的服务账号。
如果错误为 The instance creation failed due to a permission error with the
CMEK key defined,请查看密钥设置和位置。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-03。"],[],[],null,["# Cloud SQL for MySQL error messages\n\n\u003cbr /\u003e\n\nMySQL \\| [PostgreSQL](/sql/docs/postgres/error-messages \"View this page for the PostgreSQL database engine\") \\| [SQL Server](/sql/docs/sqlserver/error-messages \"View this page for the SQL Server database engine\")\n\n\u003cbr /\u003e\n\nThis page discusses some of the error messages encountered in Cloud SQL.\n\nOverview\n--------\n\nError messages in Cloud SQL come from many sources and appear in many\nplaces. Some error messages come from the database engines themselves, some from\nthe Cloud SQL service, some from client applications, and some are\nreturned by calls to the Cloud SQL Admin API.\n\nThis page includes some of the most common errors seen in\nCloud SQL. If you do not find the error code or message you are looking\nfor here, you can look for source reference material here:\n\n- [MySQL error reference pages](https://dev.mysql.com/doc/mysql-errors/5.7/en/error-reference-introduction.html)\n\n\u003cbr /\u003e\n\nIf you don't find the reference material for the error message that you're seeing,\nyou can also search in some of these places where other users may have relevant\nexperience:\n\n- [Cloud SQL questions on Stack Overflow](https://stackoverflow.com/search?q=%5Bgoogle-cloud-sql%5D+error)\n- [Public issue tracker for Cloud SQL](https://issuetracker.google.com/savedsearches/559773)\n- [DBA Stack Exchange](https://dba.stackexchange.com/tags/google-cloud-sql/hot)\n- [Cloud SQL discuss group](https://groups.google.com/g/google-cloud-sql-discuss/search?q=error&sortBy=DATE)\n- [Google Cloud Slack community](https://googlecloud-community.slack.com/)\n- [Google Cloud on Reddit](https://www.reddit.com/r/googlecloud/)\n\n\u003cbr /\u003e\n\nOperational errors\n------------------\n\n[A](#errors-a) \\| [B](#errors-b) \\| [C](#errors-c) \\| [D](#errors-d) \\| [E](#errors-e) \\| [F](#errors-f) \\| [G](#errors-g) \\| [I](#errors-i) \\| [L](#errors-l) \\| [M](#errors-m) \\| [N](#errors-n) \\| [O](#errors-o) \\| [P](#errors-p) \\| [Q](#errors-q) \\| [R](#errors-r) \\| [S](#errors-s) \\| [T](#errors-t) \\| [U](#errors-u) \\| [W](#errors-w)\n\n\u003cbr /\u003e\n\n\n\u003cbr /\u003e\n\nUnknown errors\n--------------\n\nThe following table shows some known cases where an `Unknown Error`\ncan occur, and lists specific remedies where applicable. However, this is not\na complete list. If you don't find your case in the table, check with the\n[public issue\ntracker for Cloud SQL](https://issuetracker.google.com/savedsearches/559773).\nIf you don't find the issue there, consider\n[submitting a report](https://issuetracker.google.com/issues/new?component=187202&template=0), or reviewing\n[other support options](/sql/docs/mysql/support).\n\nCloud SQL also uses some third-party binaries (for example,\n`mysqld`), which can generate unknown error messages. Such errors are\ninternal to the third-party binaries and are outside the scope of Cloud SQL.\nHowever, sometimes a more specific error can be found in the\n[Cloud SQL log files](https://console.cloud.google.com/logs/query) at around the same\ntime.\n\nAlso, sometimes it is an **error code** that is unknown. In this case,\nthe complete message can be `Unknown Error Code`."]]