Edit my.conf. If you are using a Mac and have brewed your MySQL (Mariadb), your my.conf will be in /usr/local/etc.
## Modify the following fields in my.conf for MySQL [mysqld] max_allowed_packet = 2147483648 max_connections = 2000 net_buffer_length = 16K innodb_buffer_pool_size = 512M innodb_file_per_table [mysqldump] quick max_allowed_packet = 2147483648