You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set the following environment variables before starting the Gemini CLI.
38
+
Set the following environment variables before starting the Gemini CLI.
37
39
This configuration is not required if utilizing the [Admin toolset](#supported-tools).
38
40
39
41
*`CLOUD_SQL_MYSQL_PROJECT`: The GCP project ID.
@@ -47,7 +49,20 @@ This configuration is not required if utilizing the [Admin toolset](#supported-t
47
49
Ensure [Application Default Credentials](https://cloud.google.com/docs/authentication/gcloud) are available in your environment.
48
50
49
51
> [!NOTE]
50
-
> When using private IPs with Cloud SQL for MySQL, you must use a Virtual Private Cloud (VPC) network.
52
+
> If your Cloud SQL for MySQL instance uses private IPs, you must run Gemini CLI in the same Virtual Private Cloud (VPC) network.
53
+
54
+
### Start Gemini CLI
55
+
56
+
To start the Gemini CLI, use the following command:
57
+
58
+
```bash
59
+
gemini
60
+
```
61
+
62
+
> [!WARNING]
63
+
> **Changing Instance & Database Connections**
64
+
> Currently, the database connection must be configured before starting the Gemini CLI and can not be changed during a session.
65
+
> To save and resume conversation history use command: `/chat save <tag>` and `/chat resume <tag>`.
51
66
52
67
## Usage Examples
53
68
@@ -84,8 +99,13 @@ Interact with MySQL using natural language:
84
99
85
100
## Additional Extensions
86
101
87
-
Find additional extensions to support your entire software development lifecycle at [github.com/gemini-cli-extensions](https://github.com/gemini-cli-extensions).
102
+
Find additional extensions to support your entire software development lifecycle at [github.com/gemini-cli-extensions](https://github.com/gemini-cli-extensions), including:
103
+
*[Generic MySQL extension](https://github.com/gemini-cli-extensions/mysql)
104
+
*[Cloud SQL for MySQL Observability extension](https://github.com/gemini-cli-extensions/cloud-sql-mysql-observability)
105
+
* and more!
88
106
89
107
## Troubleshooting
90
108
91
-
* "cannot execute binary file": Ensure the correct binary for your OS/Architecture has been downloaded. See [Installing the server](https://googleapis.github.io/genai-toolbox/getting-started/introduction/#installing-the-server) for more information.
109
+
* "✖ Error during discovery for server: MCP error -32000: Connection closed": The database connection has not been established. Ensure your configuration is set via environment variables.
110
+
* "✖ MCP ERROR: Error: spawn /Users/<USER>/.gemini/extensions/cloud-sql-mysql/toolbox ENOENT": The Toolbox binary did not download correctly. Ensure you are using Gemini CLI v0.6.0+.
111
+
* "cannot execute binary file": The Toolbox binary did not download correctly. Ensure the correct binary for your OS/Architecture has been downloaded. See [Installing the server](https://googleapis.github.io/genai-toolbox/getting-started/introduction/#installing-the-server) for more information.
0 commit comments