I was installing moodle on an ubuntu server. I tried following the steps given in their documentation https://docs.moodle.org/310/en/Step-by-step_Installation_Guide_for_Ubuntu
but, after I set the innodb file format to Barracuda in the mysqld.cnf file by adding the line
innodb_file_format = Barracuda
I can't restart the MySQL server. It gives me the error message
Job for mysql.service failed because the control process exited with error code.
See "systemctl status mysql.service" and "journalctl -xe" for details.
When I tried to restart the server without setting the file type, it restarted but when setting up database from the web interface, I get the error message
mysqli::__construct(): (HY000/2002): No such file or directory in /var/www/html/moodle/lib/dml/mysqli_native_moodle_database.php on line 79