Database driver MySQL on Google Cloud
Table of contents
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
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.
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.
Google Cloud MySQL connection settings
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.
|Connect by (Host/URL)
|Choose whether you want to connect using a host or a URL.
|Select the appropriate driver for your Google Cloud MySQL database.
|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.
|For a direct connection to a Google Cloud SQL instance, use the format
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.
|Enter the name of the Google Cloud MySQL database you want to connect to.
|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.
|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.
|Provide additional connection details if necessary.
|This field will be auto-filled based on your selected driver type.
|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.
ODBC and JDBC Driver Configuration
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.
Secure Connection Configurations
DBeaver supports secure connections to your Google Cloud MySQL database. Guidance on configuring such connections, specifically SSH, Proxy, Kubernetes, and SSL connections, can be found in various referenced articles. For a comprehensive understanding, please refer to these articles:
Powering Google Cloud MySQL with DBeaver
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.
Google Cloud MySQL database objects
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:
- Foreign Keys
- Session Manager
MySQL additional features in DBeaver
DBeaver provides additional features compatible with Google Cloud MySQL, but not exclusive to it:
|Backup and Restore
|How to Backup/Restore data
|Query Execution plan