You are viewing our older product's guide. Click here for the documentation of GoodData Cloud, our latest and most advanced product.
GoodData-MySQL Integration Details
When setting up direct data distribution from your MySQL database, pay attention to the considerations and best practices listed in this article.
This article is applicable to all use cases of GoodData and MySQL integration:
- Integrate a Data Source for a Data Warehouse (a getting-started guide based on sample data)
- Integrate Data Warehouses Directly to GoodData based on an Existing LDM
Ports Used
You can use any port from within the range of 1024-65535.
User Access Rights
We recommend that you grant the following access rights to the user who is referenced in Data Sources:
GRANT SELECT ON {database_name}.* TO '{user_name}'@'%'; --Grants read permission to a user.
GRANT SELECT ON {database_name}.* TO '{role_name}'; --Grants read permissions to all users in the specified role.
Data Types
During mapping the MySQL schema and the GoodData logical data model (LDM), data types are automatically converted from a MySQL data type to a GoodData LDM data type. Only the MySQL data types listed in the table are supported. If you want to prevent automatic changes, update the schema manually.
MySQL Data Type | GoodData LDM Data Type |
---|---|
bigint | BIGINT |
boolean | VARCHAR(5) |
char | VARCHAR |
date | DATE |
datetime | DATE |
decimal | DECIMAL(12,2) |
double | DECIMAL(12,2) |
double precision | DECIMAL(12,2) |
float | DECIMAL(12,2) |
int | INTEGER |
integer | INTEGER |
numeric | DECIMAL(12,2) |
text | VARCHAR (10000) |
timestamp | DATE |
varchar | VARCHAR |
others | UNSUPPORTED |