Mysql drivers on mac

Please help me with the exact details for using liquibase with mysql on mac.

I need to run the changelog-sync command against a mysql database

What driver should I download?
What folder should I put the jar file in?
How do I reference it via a driver or driver properties file?
What does the final command look like?

This is what I’ve tried so far:

downloaded mysql-connector-j-8.0.33.jar and put it in a a folder

created file mysql-driver.properties file:
classpath: ./drivers/mysql-connector-j-8.0.33/mysql-connector-j-8.0.33.jar
driver:com.mysql.cj.jdbc.Driver

executed command
liquibase --changelog-file=./run/liquibase/changelog/changelog.xml --url="jdbc:mysql://localhost:63306/labshare-1457" --username=root --driver-properties-file=./mysql-driver.properties changelog-sync

and I get the error. ‘Cannot find database driver: com.mysql.jdbc.Driver’

Hi @kpayson,

Here’s a link to the getting started page. Using Liquibase with MySQL

This should answer all the questions above. Please try it out and let us know your results.

-PJ