I am trying to restore a MySQL database from a dump file in my Mac OS X machine, but facing a MySQL server has gone away error.
I guess I have to configuring max_allowed_packet in the my.cnf file. But, there seem to be no /ect/my.cnf file installed.
How can I specify a max packet size in the command line?
Find your configuration file in these locations – Using Option Files. Then add
max_allowed_packetvariable to the [mysqld] section, e.g. –And restart server.