Auf dieser Seite werden die beiden Ebenen der Zugriffssteuerung für Cloud SQL-Instanzen erläutert. Zum Verwalten einer Instanz müssen Sie vorab beide Ebenen der Zugriffssteuerung konfigurieren.
Ebenen der Zugriffssteuerung
Bei der Konfiguration der Zugriffssteuerung legen Sie fest, wer oder was Zugriff auf die Instanz hat. Die Zugriffssteuerung findet auf zwei Ebenen statt:
Zugriff auf Instanzebene
Auf Instanzebene gewähren Sie Zugriff auf Ihre Cloud SQL-Instanz über eine Anwendung oder einen Client (ausgeführt in der App Engine-Standardumgebung oder extern) oder über einen anderen Google Cloud -Dienst wie Compute Engine.
Datenbankzugriff
Für den Zugriff auf Datenbankebene wird das Zugriffssteuerungssystem von MySQL verwendet, damit MySQL-Nutzer Zugriff auf die Daten in der Instanz haben.
Zugriff auf Instanzebene
Wie Sie den Zugriff auf der Instanzebene konfigurieren, hängt von der Verbindungsquelle ab:
Nachdem ein Nutzer oder eine Anwendung eine Verbindung zu einer Datenbankinstanz hergestellt hat, muss sich der Nutzer oder die Anwendung mit einem Nutzer- oder Dienstkonto anmelden.
Beim Erstellen einer Cloud SQL-Instanz richten Sie das Standardnutzerkonto (root) ein. Sie können auch weitere Nutzer erstellen, um eine genauere Kontrolle über den Zugriff auf Ihre Instanz zu ermöglichen.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-08-19 (UTC)."],[],[],null,["# About access control\n\n\u003cbr /\u003e\n\nMySQL \\| [PostgreSQL](/sql/docs/postgres/instance-access-control \"View this page for the PostgreSQL database engine\") \\| [SQL Server](/sql/docs/sqlserver/instance-access-control \"View this page for the SQL Server database engine\")\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nThis page discusses the two levels of access control for Cloud SQL\ninstances. You must configure both levels of access control before you can\nmanage your instance.\n\nLevels of access control\n------------------------\n\nConfiguring access control involves controlling who or\nwhat can access the instance. Access control occurs on two levels:\n\nInstance-level access\n:\n Instance-level access authorizes access to your Cloud SQL instance\n from an application or client (running on an App Engine standard environment or externally)\n or from another Google Cloud service, such as Compute Engine.\n\nDatabase access\n:\n Database access uses\n [MySQL's access control system](https://dev.mysql.com/doc/refman/8.0/en/access-control.html) to allow MySQL users to have access to the\n data in your instance.\n| **Note:** For information about controlling\n| who can *manage* your instance, see\n| [Project access control](/sql/docs/project-access-control).\n\n\u003cbr /\u003e\n\n### Instance-level access\n\nConfiguring instance-level access depends on the connection source:\n\n### Database access\n\nAfter a user or application connects to a database instance, the user or\napplication must log in with a user or service account.\n\nAs part of creating a Cloud SQL instance, you set up the default user\n(root) account. You can also create more users to give you finer-grained control\nover access to your instance.\n\nFor more information,\nsee [MySQL users](/sql/docs/mysql/users) and\n[Configuring the default user account](/sql/docs/mysql/create-manage-users#user-root).\n\nWhat's next\n-----------\n\n- Learn more about [how Cloud SQL works with MySQL users](/sql/docs/mysql/users).\n- Learn more about the [MySQL Access Privilege System](https://dev.mysql.com/doc/refman/8.0/en/access-control.html).\n- Learn more about your [options for connecting from an external application](/sql/docs/mysql/connect-overview).\n- Learn about [controlling who can manage your Google Cloud Platform project](/sql/docs/mysql/roles-and-permissions)."]]