Pro test, the reason is that the version of mysql and the driver used by DataGrip are inconsistent. View
Right-click to connect to the database ===> properties
View mysql driver
Modify it to the driver corresponding to its own version, it will prompt to download, and you can use it after downloading.