You shouldn't need to mess with the .cnf file unless you are attempting some special configuration - it should work out of the box.
Ref. https://moodle.org/mod/forum/discuss.php?d=370608#p1494288
Installing and upgrading help
Upgrade steps
This discussion has been locked so you can no longer reply to it.