The easiest way to load the MySQL Time Zone tables from your macOS tzdata is via this command:
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql
Once the file is imported, you'll need to restart MySQL or MariaDB:
# Determine if you have MySQL or MariaDB
brew list
# Then, restart the service
brew services restart mysql # If you have MySQL
brew services restart mariadb # If you have MariaDB
Now that you have restarted MySQL, there is a simple test to check that the time zones are loaded. Launch the MySQL command line:
mysql -u root
Note: add -p if you need to enter a password to access your mysql db as root.
Once at the MySQL prompt, run this select:
SELECT CONVERT_TZ(now(), 'UTC', 'Australia/Melbourne');
If either time zone does not exist in your time zone table, you will get back a 'NULL' value in the converted column. If both exist, you'll get back a timestamp and you're ready to go.