-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Database driver MySQL on Google Cloud
Note: This driver is available in Lite, Enterprise, Ultimate and Team editions only.
- Overview
- Feature highlights
- Setting Up
- Secure Storage with Secret Providers
- Powering Google Cloud MySQL with DBeaver
- MySQL additional features in DBeaver
Google Cloud SQL for MySQL is a managed database service provided by Google Cloud, offering the robust capabilities of MySQL with the added benefits of cloud hosting. This guide is designed to assist in the setup and management of Google Cloud SQL for MySQL databases using DBeaver.
Before you can start managing your database, it's essential to establish a connection in DBeaver. This involves
selecting the CloudSQL - MySQL
option to connect to the Google Cloud SQL service. If you have not yet created a connection
in DBeaver, please refer to our Creating a Connection article for guidance.
Tip: Users with Ultimate and Team editions of DBeaver can connect to their Google Cloud SQL for MySQL databases using the Cloud Explorer.
DBeaver extends beyond standard SQL tasks, offering a suite of MySQL-specific features. These capabilities enhance the functionality and management of Google Cloud MySQL databases, catering to specific needs and advanced use cases.
-
Data Types: DBeaver fully supports MySQL-specific data types such as Enumerations and Sets. This enables precise data structuring and validation directly within the interface.
-
Security Management: An integral part of managing databases is user security. DBeaver includes comprehensive tools for MySQL User Management, allowing for detailed control over user permissions and roles.
-
Storage Engines: Understanding and choosing the right storage engine is crucial for database performance. DBeaver supports various MySQL storage engines, including InnoDB, MyISAM, and specialized engines like MRG_MyISAM, Archive, Blackhole, CSV, Memory, and Performance_schema.
-
Database Management Tools: DBeaver provides advanced database management features specific to MySQL. This includes the management of MySQL Events and Stored Procedures, allowing for automation and efficient management of routine database tasks.
This section provides an overview of DBeaver's settings for establishing a direct connection and the configuration of secure connections using SSH, proxies, SSL, and the setup of ODBC/JDBC drivers for Google Cloud MySQL.
Note: The connection process in DBeaver utilizes the standard MySQL driver, tailored to interact with the Google Cloud SQL for MySQL service, highlighting its cloud-based characteristics.
In this subsection, we will outline the settings for establishing a direct connection to a Google Cloud MySQL database using DBeaver. Correctly configuring your connection ensures seamless interaction between DBeaver and your Google Cloud MySQL database.
The page of the connection settings requires you to fill in specific fields to establish the initial connection.
Field | Description |
---|---|
Connect by (Host/URL) | Choose whether you want to connect using a host or a URL. |
Driver Type | Select the appropriate driver for your Google Cloud MySQL database. |
URL | If you are connecting via URL, enter the URL of your Google Cloud MySQL database here. This field is disabled if you're connecting via the host. |
Host/Instance | For a direct connection to a Google Cloud SQL instance, use the format project:region:instance . Here, project refers to your Google Cloud project ID, region denotes the geographical location of your instance, and instance is the unique ID of your Google Cloud SQL instance. |
Database | Enter the name of the Google Cloud MySQL database you want to connect to. |
Authentication | Choose the type of authentication you want to use for the connection. For detailed guides on authentication types, please refer to the following articles: - Google Cloud IAM - DBeaver Profile Authentication You can also read about security in DBeaver PRO. |
Local Client | Specify the local client, see our article about local client configuration. |
Server Time Zone | This setting is responsible for determining the time zone used by the Google Cloud MySQL server. |
Connection Details | Provide additional connection details if necessary. |
Driver Name | This field will be auto-filled based on your selected driver type. |
Driver Settings | If there are any specific driver settings, configure them here. |
The Connection Details section in DBeaver allows you to customize your experience while working with Google Cloud MySQL database. This includes options for adjusting the Navigator View, setting up Security measures, applying Filters, configuring Connection Initialization settings, and setting up Shell Commands. Each of these settings can significantly impact your database operations and workflow. For detailed guides on these settings, please refer to the following articles:
- Connection Details Configuration
- Database Navigator
- Security Settings Guide
- Filters Settings Guide
- Connection Initialization Settings Guide
- Shell Commands Guide
While managing MySQL databases hosted on Google Cloud with DBeaver, it's important to understand that the underlying driver is the standard MySQL JDBC and ODBC driver.
The settings for Google Cloud MySQL Driver properties enable you to adjust the performance of the MySQL JDBC and ODBC driver. These adjustments can influence the efficiency, compatibility, and features of your Google Cloud MySQL database.
For a complete walkthrough on setting up MySQL JDBC and ODBC drivers properties, you can refer to the official MySQL JDBC documentation and MySQL ODBC documentation. These guides detail each driver's properties and how they can be used to optimize Google Cloud MySQL database connections.
You can customize the MySQL driver in DBeaver via the Edit Driver page, accessible by clicking on the Driver Settings button on the first page of the driver settings. This page offers a range of settings that can influence your Google Cloud MySQL database connections. For a comprehensive guide on these settings, please refer to our Database drivers article.
DBeaver provides extensive capabilities for managing Google Cloud MySQL database connections via ODBC/JDBC drivers. This functionality enables you to connect to your Google Cloud MySQL database using native ODBC drivers, offering an alternative when specific DBeaver drivers are not available.
This process is similar across most databases that support ODBC/JDBC drivers. For a comprehensive, step-by-step guide on how to install the driver manager, set up drivers, configure data sources, and establish connections in DBeaver, you can refer to our ODBC Driver Configuration article.
DBeaver supports secure connections to your Google Cloud MySQL database. Guidance on configuring such connections, specifically SSH, Proxy, Kubernetes, AWS SSM and SSL connections, can be found in various referenced articles. For a comprehensive understanding, please refer to these articles:
DBeaver supports various cloud-based secret providers to retrieve database credentials. For detailed setup instructions, see Secret Providers.
DBeaver offers an array of features specifically tailored for MySQL databases, including those hosted on Google Cloud. This includes the ability to view and manage databases, along with numerous unique capabilities aimed at optimizing database operations.
DBeaver lets you view and manipulate a wide range of database objects. DBeaver has extensive support for various MySQL metadata types, allowing you to interact with a wide variety of database objects, such as:
- Databases
- Tables
- Columns
- Constraints
- Indexes
- Foreign Keys
- References
- Triggers
- Views
- Indexes
- Procedures
- Triggers
- Events
- Tables
- Users
- Administer
- Session Manager
DBeaver provides additional features compatible with Google Cloud MySQL, but not exclusive to it:
Category | Feature |
---|---|
Data Transfer | Data Import |
Data Export | |
Session Management | Session Manager |
Backup and Restore | How to Backup/Restore data |
Schema Management | Schema Compare |
Data Visualization | GIS Guide |
ERD Guide | |
Query Execution plan |
-
Views
-
Search
-
Data management
-
Usability enhancements
-
Security
-
Projects
- Sample Database
-
Database Connections
- Edit Connection
- Invalidate/Reconnect to Database
- Disconnect from Database
- Change current user password
- Advanced settings
- Cloud configuration settings
- Local Client Configuration
- Connection Types
- Configure Connection Initialization Settings
-
Tableau integration
- Transactions
- Drivers
- Tasks
-
Cloud Explorer
-
Cloud Storage
- Classic
- Cloud
- Embedded
- File drivers
- Changing interface language
- DBeaver extensions - Office, Debugger, SVG
- Installing extensions - Themes, version control, etc
- User Interface Themes
- Command Line
- Reset UI settings
- Reset workspace
- Troubleshooting system issues
- Posting issues
- Log files
- JDBC trace
- Thread dump
- Managing connections
- Managing variables
- Managing drivers
- Managing preferences
- Managing restrictions
- Windows Silent Install
- Snap installation