* For MariaDB on Ubuntu 16.04, the msyql root user can only be
accessed from localhost with unix socket. So we retry with
localhost when failing with 127.0.0.1.
* Also we add restriction to disallow using mysql "root" user in
ccnet/seafile/seahub configuraiton. It provides both secuirty
hardening, and also fixes the mariadb problem mentioned above.