Quantcast
Channel: Topic Tag: MySQL | WordPress.org
Viewing all articles
Browse latest Browse all 5530

Luis Rodrigues on "[Plugin: WP Security Audit Log] Plugin will not install on MariaDB 10.0.10"

$
0
0

The plugin refuses to load on MariaDB 10.0.10 (a drop-in replacement for MySQL), claiming that "Plugin could not be properly installed. The MySQL version installed on this server is less than 5."

I noticed that the checkMySQL() method only looks at the first character of the version string, rather than comparing it with version_compare() or some such like you do elsewhere:

public static function checkMySQL(){
        global $wpdb;
        $v = $wpdb->get_var("SELECT VERSION();");
        if(empty($v)){ return false; }
        $v = trim($v);
        if(intval($v[0]) < 5){ return false; }
        return true;
    }

https://wordpress.org/plugins/wp-security-audit-log/


Viewing all articles
Browse latest Browse all 5530

Trending Articles