def METHOD_NAME(self, ci=False):
    if WOShellExec.cmd_exec(self, 'mysqladmin ping'):
        # Backup all database
        WOMysql.backupAll(self, fulldump=True)
    else:
        Log.error(self, "Unable to connect to MariaDB")
    # Check current MariaDB version
    wo_mysql_current_repo = WOFileUtils.grep(
        self, '/etc/apt/sources.list.d/wo-repo.list', 'mariadb')
    if wo_mysql_current_repo:
        current_mysql_version = wo_mysql_current_repo.split('/')
    else:
        Log.error(self, "MariaDB is not installed from repository yet")
    if 'repo' in current_mysql_version:
        current_mysql_version = current_mysql_version[5]
    if self.app.config.has_section('mariadb'):
        mariadb_release = self.app.config.get(
            'mariadb', 'release')
        if mariadb_release < WOVar.mariadb_ver:
            mariadb_release = WOVar.mariadb_ver
    else:
        mariadb_release = WOVar.mariadb_ver
    if mariadb_release == current_mysql_version:
        Log.info(self, "You already have the latest "
                 "MariaDB version available")
        return 0
    wo_old_mysql_repo = ("deb [arch=amd64,arm64,ppc64el] "
                         "http://mariadb.mirrors.ovh.net/MariaDB/repo/"
                         "{version}/{distro} {codename} main"
                         .format(version=current_mysql_version,
                                 distro=WOVar.wo_distro,
                                 codename=WOVar.wo_platform_codename))
    if WOFileUtils.grepcheck(
            self, '/etc/apt/sources.list.d/wo-repo.list',
            wo_old_mysql_repo):
        WORepo.remove(self, repo_url=wo_old_mysql_repo)
    # Add MariaDB repo
    pre_pref(self, WOVar.wo_mysql)
    # Install MariaDB
    Log.wait(self, "Updating apt-cache          ")
    WOAptGet.update(self)
    Log.valide(self, "Updating apt-cache          ")
    Log.wait(self, "Upgrading MariaDB          ")
    WOAptGet.remove(self, ["mariadb-server"])
    WOAptGet.auto_remove(self)
    WOAptGet.install(self, WOVar.wo_mysql)
    if not ci:
        WOAptGet.dist_upgrade(self)
    WOAptGet.auto_remove(self)
    WOAptGet.auto_clean(self)
    Log.valide(self, "Upgrading MariaDB          ")
    WOFileUtils.mvfile(
        self, '/etc/mysql/my.cnf', '/etc/mysql/my.cnf.old')
    WOFileUtils.create_symlink(
        self, ['/etc/mysql/mariadb.cnf', '/etc/mysql/my.cnf'])
    WOShellExec.cmd_exec(self, 'systemctl daemon-reload')
    WOShellExec.cmd_exec(self, 'systemctl enable mariadb')
    post_pref(self, WOVar.wo_mysql, [])