Does Google Cloud SQL support JSON datatype?
Asked Answered
S

2

6

JSON datatype is supported in mysql from 5.7.8 onwards.

Google cloud sql faq - says second generation instances are on 5.6 and 5.7. Minor version updates are deployed as they are released, with no further action required on your part.

Can anybody tell me what exact version does google cloud sql is using right now or whether it supports JSON datatype.

Spitler answered 10/10, 2016 at 10:25 Comment(1)
JSON support in mysql link : dev.mysql.com/doc/refman/5.7/en/json.htmlSpitler
A
7

The current version is 5.7.11 and you are able to use JSON types.

You can check the version yourself using SELECT @@version;:

MySQL [(none)]> select @@version;
+-------------------+
| @@version         |
+-------------------+
| 5.7.11-google-log |
+-------------------+
1 row in set (0.12 sec)
Afflatus answered 10/10, 2016 at 21:42 Comment(4)
Could I have found this in documentation somewhere ?Spitler
From the version command our instance is on "5.6.31-log". So not everyone just gets JSON support unfortunately.Cenis
If you have a 5.6 instance then obviously you can't use 5.7 features.Afflatus
FYI, current version is now 5.7.14 on Cloud SQLMargalo
G
3

JSON field types were added in MySQL version 5.7.8.

The current version in Google Cloud SQL is MySQL v5.7.11.

So yes, JSON colum types are supported.

Gilbert answered 10/10, 2016 at 22:15 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.