下載mysql Connector/J驅(qū)動(dòng)包
https://dev.mysql.com/downloads/connector/j/
然后解壓到一個(gè)目錄

image
新建mysql 8.0連接驅(qū)動(dòng)
打開 DataGrip
點(diǎn)擊 Data Sources

image

image
修改下Name,
添加上面解壓的connector jar包
編輯URL template兩個(gè)值,在原來值的后面追加?serverTimezone=UTC,目的是指定時(shí)區(qū),東八區(qū)表示方法:?serverTimezone=GMT%2B8
jdbc:mysql://{host::localhost}?[:{port::3306}][/{database}?][\?<&,user={user},password={password},{:identifier}={:identifier}>]\?serverTimezone=UTC
jdbc:mysql://address=\(protocol=tcp\)\(<\)\(,host={host:host_ipv6:localhost},port={port::3306},user={user},password={password},{:identifier}={:identifier}>\)[/{database}][\?<&,{:identifier}={:param}>]\?serverTimezone=UTC
最后點(diǎn)擊Apply即可
測試過,使用自帶的 mysql connector v8.0.15的也可以

image
創(chuàng)建連接實(shí)例

image

image

image

image