https://dev.mysql.com/downloads/connector/j/
-Select platform Independent if you are using Win OS
-Download zip file, exctract it and find in this folder .jar file
-Name of it "mysql-connector-j-9.0.0"
- Right click project folder
- Go to 'Open Module Settings'
- go to Libraries
- Select + and add .jar file apply and oky