A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cloud.google.com/sql/docs/mysql/enable-vector-search below:

Enable and disable vector embeddings on your instance | Cloud SQL for MySQL

Enable and disable vector embeddings on your instance

Stay organized with collections Save and categorize content based on your preferences.

MySQL   |  PostgreSQL   |  SQL Server To use the GA version of vector search, the instance maintenance version should be version MYSQL_8_0_version.R20241208.01_00 or newer, where version is the minor version number. For information about how to upgrade your instance to a newer version that supports GA vector embeddings, see Self-service maintenance.

For information about the syntax and behavior of vector embeddings for the Public Preview version of this feature, see Work with vector embeddings (Preview).

This section describes how to configure your Cloud SQL instance to support the storage, indexing, and querying of vector embeddings.

Both Cloud SQL Enterprise edition and Cloud SQL Enterprise Plus edition instances support vector embeddings. All versions of MySQL 8.0.36+ are supported.

Before you begin

Make sure you have the Cloud SQL Admin and Compute Viewer roles on your user account.

For more information, see Roles and permissions.

Enable the database flag for vector embeddings

To turn on support for vector embeddings, you must enable the MySQL database flags.

gcloud sql instances patch INSTANCE_NAME \
 --database-flags=FLAGS

Replace the following:

For more information about how to configure database flags for MySQL, see Configure database flags.

Disable vector embeddings

Before you disable vector embeddings on your instance, you must explicitly drop all vector indexes on the instance. To learn how to find a list of vector indexes on the instance, see Monitor vector indexes.

Disabling vector embeddings support prevents you from creating new vector embedding columns and vector indexes. It also prevents you from using the approx_distance function for vector searches. To turn off support for vector embeddings, set the cloudsql_vector flag to off. After you configure this static flag, the instance restarts automatically for the configuration change to take effect.

To disable support for vector embeddings, set the cloudsql_vector flag to off.

For example:

gcloud sql instances patch INSTANCE_NAME \
 --database-flags=cloudsql_vector=off

Replace INSTANCE_NAME with the name of the instance on which you're turning off vector embedding support.

What's next

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-08-14 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4